lkml.org 
[lkml]   [2011]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] drivers/leds/leds-netxbig: make LEDS_NETXBIG depend on LEDS_CLASS
    On Sat, Jul 09, 2011 at 11:07:18PM +0800, Axel Lin wrote:
    > We call led_classdev_register/led_classdev_unregister in
    > create_netxbig_led/delete_netxbig_led, thus make LEDS_NETXBIG
    > depend on LEDS_CLASS.
    >
    > This patch fixes below build error if LEDS_CLASS is not configured.
    >
    > LD .tmp_vmlinux1
    > drivers/built-in.o: In function `create_netxbig_led':
    > drivers/leds/leds-netxbig.c:350: undefined reference to `led_classdev_register'
    > drivers/leds/leds-netxbig.c:361: undefined reference to `led_classdev_unregister'
    > drivers/built-in.o: In function `delete_netxbig_led':
    > drivers/leds/leds-netxbig.c:313: undefined reference to `led_classdev_unregister'
    > make: *** [.tmp_vmlinux1] Error 1
    >
    > Signed-off-by: Axel Lin <axel.lin@gmail.com>

    Acked-by: Simon Guinot <sguinot@lacie.com>

    Thanks,

    Simon
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2011-07-09 17:45    [W:0.019 / U:30.996 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site