lkml.org 
[lkml]   [2009]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: linux-next: Tree for March 19 (wireless/p54)
Date
On Thursday 19 March 2009 19:49:48 Randy Dunlap wrote:
> Michael Buesch wrote:
> > On Thursday 19 March 2009 18:28:30 Randy Dunlap wrote:
> >> Stephen Rothwell wrote:
> >>> Hi all,
> >>>
> >>> Changes since 20090318:
> >>
> >> ERROR: "led_classdev_register" [drivers/net/wireless/p54/p54common.ko] undefined!
> >> ERROR: "led_classdev_unregister" [drivers/net/wireless/p54/p54common.ko] undefined!
> >>
> >> One possible option (fix) is to have CONFIG_MAC80211_LEDS also select
> >> LEDS_CLASS (that would build the missing functions).
> >
> > Does p54 select CONFIG_MAC80211_LEDS? If that's the case, I think it should
>
> No, it doesn't. p54common.c just has a large block of code that is
> surrounded by
> #ifdef CONFIG_MAC80211_LEDS
> ...
> #endif

Yeah. I do think that it'd be wrong for mac80211 to select LEDS_CLASS.
mac80211 implements the triggers and the lowlevel drivers implement the LED class device.
So mac80211 does not depend on LEDS_CLASS at all.

So p54 should probably introduce an automagic config option like b43 does, or it should do
something (ugly) like this:

#if defined(CONFIG_MAC80211_LEDS) && (defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE))
...
#endif
--
Greetings, Michael.


\
 
 \ /
  Last update: 2009-03-19 19:59    [W:0.061 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site