From: Simon Guinot Date: Thu, 7 Oct 2010 14:35:40 +0000 (+0200) Subject: leds: leds-ns2: fix private driver data storage X-Git-Tag: v2.6.37-rc1~184^2~5^2~4^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5971bbc1caf0ccbab3fea74fe37abb649d1c7cf;p=pandora-kernel.git leds: leds-ns2: fix private driver data storage dev_set_drvdata() can't be used to set the driver private data pointer. This would overwrite the led classdev object previously registered by led_classdev_register(). Note that despite this mistake, the driver work fine because led_dat and led_dat->cdev are at the same memory address. Signed-off-by: Simon Guinot Signed-off-by: Nicolas Pitre --- Reading git-diff-tree failed