]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/nouveau/led: prevent compiling the led-code if nouveau=y and leds=m
authorMartin Peres <martin.peres@free.fr>
Wed, 7 Dec 2016 04:30:15 +0000 (06:30 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 31 Jan 2017 10:05:25 +0000 (20:05 +1000)
commitd89b3d7d4b254ba512f0d4e7961f47c04c96ac32
tree6bfbd74d0148271552508b3c88f5c330000f641d
parent38bc8ac9e1c55577117d4ec1519f0cd3052084b7
drm/nouveau/nouveau/led: prevent compiling the led-code if nouveau=y and leds=m

The proper fix would have been to select LEDS_CLASS but this can lead
to a circular dependency, as found out by Arnd.

This patch implements Arnd's suggestion instead, at the cost of some
auto-magic for a fringe feature.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Reported-by: Intel's 0-DAY
Fixes: 4956dd50d8f5 ("drm/nouveau/drm/nouveau: add a LED driver for the NVIDIA logo")
Signed-off-by: Martin Peres <martin.peres@free.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_led.h