summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-lp55xx-common.h
diff options
context:
space:
mode:
authorSimon Guinot <simon.guinot@sequanux.org>2013-03-19 11:07:29 -0700
committerBryan Wu <cooloney@gmail.com>2013-04-01 11:04:52 -0700
commit3de1929ba61df87a0561c4f1fb7161c401fe3d04 (patch)
tree92d07b007a17379e26fc1d77851a260ea537b519 /drivers/leds/leds-lp55xx-common.h
parentc971ff185f6443e834686f140ba6d6e341ced600 (diff)
downloadlinux-3de1929ba61df87a0561c4f1fb7161c401fe3d04.tar.gz
linux-3de1929ba61df87a0561c4f1fb7161c401fe3d04.tar.bz2
linux-3de1929ba61df87a0561c4f1fb7161c401fe3d04.zip
leds: leds-ns2: fix oops at module removal
This patch fixes a regression introduced by commit 72052fcc10 ("leds: leds-ns2: add device tree binding"). When the driver is initialized with device tree data, platform_data pointer is NULL. This causes a kernel oops at removal. To fix this bug, num_leds is moved into driver_data and platform_data is not longer used from ns2_led_remove(). Signed-off-by: Simon Guinot <simon.guinot@sequanux.org> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/leds-lp55xx-common.h')
0 files changed, 0 insertions, 0 deletions