Re: WARN_ON(): proc_dir_entry 'rtc' already registered

From: Pavel Machek
Date: Tue Feb 19 2008 - 06:24:17 EST


On Mon 2008-02-18 03:08:16, David Brownell wrote:
> On Monday 18 February 2008, Pavel Machek wrote:
> > > How to fix ... how about:  instead of just warning folk
> > > off such legacy RTC drivers [1] we just wrap them with
> > > an "if RTC_LIB != n" so this mistake won't be possible.
> >
> > Yes, disabling bad configs in Kconfig seems like way to go.
>
> Problem is ... that also disables valid configs that
> get assembled by picking the right module(s) for the
> target system.

Is there any reason to use the old rtc subsystem?

At least OLD_RTC=y NEW_RTC=y should be disabled... even if OLD_RTC=m
NEW_RTC=m makes some sense.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/