• David Brownell's avatar
    rtc-cmos probe() cleanup · 05440dfc
    David Brownell authored
    Some cleanups for the rtc-cmos probe logic:
    
     - Claim i/o ports with request_region() not request_resource(),
       for better coexistence betwen platform and pnp bus glues.
    
     - Claim those ports earlier, to help work around procfs bugs
       (it allows duplicate names, like /proc/driver/rtc).
    
     - Fix some glitches in cleanup code, notably a cut'n'paste-o
       where the i/o port region might not get released during
       cleanup after a probe fault.
    
    And some comment clarifications, including noting that this code
    must work with PNPBIOS not just PNPACPI..
    
    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Cc: Russell King <rmk@arm.linux.org.uk>
    Cc: Alessandro 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>
    05440dfc
rtc-cmos.c 19.5 KB