]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 5452/1: ep93x: rtc: use ioremap'ed addresses
authorHartley Sweeten <hartleys@visionengravers.com>
Wed, 15 Apr 2009 22:18:26 +0000 (23:18 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 26 Apr 2009 12:57:29 +0000 (13:57 +0100)
commit46daa873a8f2b39a9bfc30ab0a3964b7be3a35c1
treef90f5394715db2714da7a9d80e76c7d4b566d2d8
parentea8d2df321cda59fcd09a7c0c8acf998c3dd6de5
[ARM] 5452/1: ep93x: rtc: use ioremap'ed addresses

Update the rtc-ep93xx driver to use ioremap'ed addresses.

This removes the dependency on <mach/hardware.h> and properly
reports the memory addresses used by the driver in /proc/iomem.

In addition, ep93xx_rtc_init() is updated to use
platform_driver_probe() instead of platform_driver_register().

Also, the device_create_file() calls are now properly checked for
error conditions.  The created sysfs files are also now removed
when the driver is removed.

The version number for the driver has been bumped at the request
of Alessandro Zummo.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-ep93xx/core.c
arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h
drivers/rtc/rtc-ep93xx.c