• David Brownell's avatar
    rtc: avoid legacy drivers with generic framework · c7500900
    David Brownell authored
    Kconfig tweaks to help reduce RTC configuration bugs, by avoiding
    legacy RTC drivers when the generic RTC framework is enabled:
    
     - If rtc-cmos is selected, disable the legacy rtc driver;
    
     - When using generic RTC on x86, enable rtc-cmos by default;
    
     - In the old "chardev RTC" section of Kconfig, add a comment
       warning people off these (seven) legacy RTC drivers when
       the generic framework is in use.
    
    People can still use the legacy drivers if they want (or need) to.
    
    This doesn't fix the broken dependencies for the legacy "CMOS" RTC driver.
    Ideally it would be a full list of platforms where it works, not a partial
    list of ones where it won't.  Or better yet, it would depend on a
    "HAVE_CMOS_RTC" flag defined by various platforms ...  surely there's a
    Kconfig style guideline lurking there.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Acked-by: default avatarAlessandro Zummo <a.zummo@towertech.it>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    c7500900
Kconfig 15.9 KB