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)
418418 priv -> info = of_device_get_match_data (& client -> dev );
419419
420420 priv -> client = client ;
421- i2c_set_clientdata (client , priv );
422421
423422 priv -> regmap = devm_regmap_init_i2c (client , & max96712_i2c_regmap );
424423 if (IS_ERR (priv -> regmap ))
@@ -448,7 +447,8 @@ static int max96712_probe(struct i2c_client *client)
448447
449448static void max96712_remove (struct i2c_client * client )
450449{
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 );
452452
453453 v4l2_async_unregister_subdev (& priv -> sd );
454454
You can’t perform that action at this time.
0 commit comments