summaryrefslogtreecommitdiffstats
path: root/mm/mmzone.c
diff options
context:
space:
mode:
authorSimon Guinot <sguinot@lacie.com>2010-10-07 16:35:40 +0200
committerNicolas Pitre <nico@fluxnic.net>2010-10-07 14:00:23 -0400
commite5971bbc1caf0ccbab3fea74fe37abb649d1c7cf (patch)
tree727aface2c486bbea7b70f1b587497bad9885771 /mm/mmzone.c
parentb51d92da4ebb52b61fdc99c911171562673e88ef (diff)
downloadop-kernel-dev-e5971bbc1caf0ccbab3fea74fe37abb649d1c7cf.zip
op-kernel-dev-e5971bbc1caf0ccbab3fea74fe37abb649d1c7cf.tar.gz
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 <sguinot@lacie.com> Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Diffstat (limited to 'mm/mmzone.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud