+ driver-for-the-atmel-on-chip-rtc-on-at32ap700x-devices-update.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Further fixes for the at32ap700x RTC driver:
has been added to the -mm tree.  Its filename is
     driver-for-the-atmel-on-chip-rtc-on-at32ap700x-devices-update.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Further fixes for the at32ap700x RTC driver:
From: David Brownell <david-b@xxxxxxxxxxx>

 - Strike some alarm setup code that's no longer needed.
   (This patch seems to have gotten lost somewhere...)

 - Make the driver name (and its module alias) match what
   the platform setup code uses, so the driver can bind
   and hotplug.

Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/rtc/rtc-at32ap700x.c |   26 +++-----------------------
 1 file changed, 3 insertions(+), 23 deletions(-)

diff -puN drivers/rtc/rtc-at32ap700x.c~driver-for-the-atmel-on-chip-rtc-on-at32ap700x-devices-update drivers/rtc/rtc-at32ap700x.c
--- a/drivers/rtc/rtc-at32ap700x.c~driver-for-the-atmel-on-chip-rtc-on-at32ap700x-devices-update
+++ a/drivers/rtc/rtc-at32ap700x.c
@@ -109,28 +109,6 @@ static int at32_rtc_setalarm(struct devi
 
 	rtc_unix_time = rtc_readl(rtc, VAL);
 
-	/* RTC does only support one alarm time, not periodic */
-	if (alrm->time.tm_mday <= 0) {
-		struct rtc_time	tm;
-		unsigned long then;
-
-		rtc_time_to_tm(rtc_unix_time, &tm);
-
-		alrm->time.tm_mday = tm.tm_mday;
-		alrm->time.tm_mon  = tm.tm_mon;
-		alrm->time.tm_year = tm.tm_year;
-
-		rtc_tm_to_time(&alrm->time, &then);
-
-		/* check if the alarm wraps into tomorrow */
-		if (then < rtc_unix_time) {
-			rtc_time_to_tm(rtc_unix_time + 24 * 60 * 60, &tm);
-			alrm->time.tm_mday = tm.tm_mday;
-			alrm->time.tm_mon  = tm.tm_mon;
-			alrm->time.tm_year = tm.tm_year;
-		}
-	}
-
 	ret = rtc_tm_to_time(&alrm->time, &alarm_unix_time);
 	if (ret)
 		return ret;
@@ -312,10 +290,12 @@ static int __exit at32_rtc_remove(struct
 	return 0;
 }
 
+MODULE_ALIAS("at32ap700x_rtc");
+
 static struct platform_driver at32_rtc_driver = {
 	.remove		= __exit_p(at32_rtc_remove),
 	.driver		= {
-		.name	= "rtc-at32ap700x",
+		.name	= "at32ap700x_rtc",
 		.owner	= THIS_MODULE,
 	},
 };
_

Patches currently in -mm which might be from david-b@xxxxxxxxxxx are

origin.patch
git-avr32.patch
pm-do-not-use-saved_state-from-struct-dev_pm_info-on-arm.patch
git-mmc.patch
git-mtd.patch
geode-basic-infrastructure-support-for-amd-geode-class.patch
char-genrtc-use-wait_event_interruptible.patch
drivers-pmc-msp71xx-gpio-char-driver.patch
gpio-calls-dont-need-i-o-barriers.patch
dev_vdbg-available-with-dverbose_debug.patch
spi-controller-drivers-check-for-unsupported-modes.patch
spi-add-3wire-mode-flag.patch
spidev-compiler-warning-gone.patch
spi_mpc83xxc-underclocking-hotfix.patch
atmel_spi-minor-updates.patch
s3c24xx-spi-controllers-both-select-bitbang.patch
spi-master-driver-for-xilinx-virtex.patch
spi-omap2_mcspi-driver.patch
rtc-ds1307-cleanups.patch
rtc-rs5c372-becomes-a-new-style-i2c-driver.patch
thecus-n2100-register-rtc-rs5c372-i2c-device.patch
rtc-make-example-code-jump-to-done-instead-of-return-when-ioctl-not-supported.patch
rtc-dev-return-enotty-in-ioctl-if-irq_set_freq-is-not-implemented-by-driver.patch
driver-for-the-atmel-on-chip-rtc-on-at32ap700x-devices.patch
driver-for-the-atmel-on-chip-rtc-on-at32ap700x-devices-update.patch
rtc-kconfig-tweax.patch
rtc-add-rtc-m41t80-driver-take-2.patch
rtc-watchdog-support-for-rtc-m41t80-driver-take-2.patch
omap-add-ti-twl92330-menelaus-power-management-chip-driver.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux