From: Wei Yongjun Date: Sat, 9 Nov 2013 00:24:18 +0000 (-0300) Subject: [media] media: i2c: lm3560: use correct clientdata in lm3560_remove() X-Git-Tag: v3.14-rc1~20^2~354 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc58f4db5173f5cd039de4681ec4778b5cd71182;p=pandora-kernel.git [media] media: i2c: lm3560: use correct clientdata in lm3560_remove() We had set the i2c clientdata to &flash->subdev_led[LM3560_LED1] after call lm3560_subdev_init(flash, LM3560_LED1, "lm3560-led1"), but the container_of() in lm3560_remove() return the wrong pointer to flash.(should be container_of(subdev, struct lm3560_flash, subdev_led[LM3560_LED_MAX-1]) This patch fix to set i2c clientdata to flash so we can get flash from clientdata directly. Signed-off-by: Wei Yongjun Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed