File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
drivers/staging/media/max96712 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -418,7 +418,6 @@ static int max96712_probe(struct i2c_client *client)
418
418
priv -> info = of_device_get_match_data (& client -> dev );
419
419
420
420
priv -> client = client ;
421
- i2c_set_clientdata (client , priv );
422
421
423
422
priv -> regmap = devm_regmap_init_i2c (client , & max96712_i2c_regmap );
424
423
if (IS_ERR (priv -> regmap ))
@@ -448,7 +447,8 @@ static int max96712_probe(struct i2c_client *client)
448
447
449
448
static void max96712_remove (struct i2c_client * client )
450
449
{
451
- struct max96712_priv * priv = i2c_get_clientdata (client );
450
+ struct v4l2_subdev * sd = i2c_get_clientdata (client );
451
+ struct max96712_priv * priv = container_of (sd , struct max96712_priv , sd );
452
452
453
453
v4l2_async_unregister_subdev (& priv -> sd );
454
454
You can’t perform that action at this time.
0 commit comments