]> git.baikalelectronics.ru Git - kernel.git/commit
rtc/nuc900: modify enable/disable IRQs and driver data setting location
authorWan ZongShun <mcuos.com@gmail.com>
Wed, 11 Aug 2010 01:02:19 +0000 (18:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:08 +0000 (08:59 -0700)
commitb64964e94619f3fb0518662f5962dcdcfaf825b1
treee43b774742d66f73f06da43c08182253b32b6bc2
parentcd8c135269e86584703c2150e996699041fb81aa
rtc/nuc900: modify enable/disable IRQs and driver data setting location

This patch does two modifications:

(1) Adjust enable/disable IRQs location,enable it after rtc
    registration and disable it prior to unregistration.

(2) Put 'platform_set_drvdata(pdev, nuc900_rtc)' in front of rtc
    registration still be safety, though there is no need to do this, when
    I move enable irq after rtc registration, I think still put
    'platform_set_drvdata' before rtc registration that would be a good
    habit.

Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-nuc900.c