• Simon Wood's avatar
    HID: hid-steelseries fix led class build issue · b52b5061
    Simon Wood authored
    Fixes 'undefined reference' issue when hid-steelseries is built in,
    but led-class is a module.
    --
    drivers/built-in.o: In function `steelseries_srws1_remove':
    hid-steelseries.c:(.text+0x3b97a1): undefined reference to `led_classdev_unregister'
    drivers/built-in.o: In function `steelseries_srws1_probe':
    hid-steelseries.c:(.text+0x3b9c51): undefined reference to `led_classdev_register'
    hid-steelseries.c:(.text+0x3b9ce5): undefined reference to `led_classdev_register'
    hid-steelseries.c:(.text+0x3b9d4b): undefined reference to `led_classdev_unregister'
    --
    
    Patch allows LED control when led-class is built in, or both hid-steelseries
    _and_ led-class are both modules.
    Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Signed-off-by: default avatarSimon Wood <simon@mungewell.org>
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    b52b5061
hid-steelseries.c 12.3 KB