From: Wolfram Sang Date: Wed, 10 Nov 2010 12:28:19 +0000 (-0300) Subject: [media] i2c: Remove obsolete cleanup for clientdata X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e6f199f3e7e10112adfa80700ecc00b056b5a62e;p=openwrt%2Fstaging%2Fblogic.git [media] i2c: Remove obsolete cleanup for clientdata A few new i2c-drivers came into the kernel which clear the clientdata-pointer on exit. This is obsolete meanwhile, so fix it and hope the word will spread. Signed-off-by: Wolfram Sang Acked-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/imx074.c b/drivers/media/video/imx074.c index b9c91c1839f8..1a1169115716 100644 --- a/drivers/media/video/imx074.c +++ b/drivers/media/video/imx074.c @@ -467,7 +467,6 @@ static int imx074_remove(struct i2c_client *client) icd->ops = NULL; if (icl->free_bus) icl->free_bus(icl); - i2c_set_clientdata(client, NULL); kfree(priv); return 0;