Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Nicolas Pitre <[email protected]>
- Loading branch information