2011-01-15 11:19:03 +01:00
|
|
|
/*
|
2011-05-26 10:43:27 +02:00
|
|
|
* RTC driver code specific to PKUnity SoC and UniCore ISA
|
2011-01-15 11:19:03 +01:00
|
|
|
*
|
|
|
|
* Maintained by GUAN Xue-tao <gxt@mprc.pku.edu.cn>
|
|
|
|
* Copyright (C) 2001-2010 Guan Xuetao
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/fs.h>
|
|
|
|
#include <linux/string.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/platform_device.h>
|
|
|
|
#include <linux/interrupt.h>
|
|
|
|
#include <linux/rtc.h>
|
|
|
|
#include <linux/bcd.h>
|
|
|
|
#include <linux/clk.h>
|
|
|
|
#include <linux/log2.h>
|
|
|
|
#include <linux/slab.h>
|
|
|
|
#include <linux/uaccess.h>
|
|
|
|
#include <linux/io.h>
|
|
|
|
|
|
|
|
#include <asm/irq.h>
|
|
|
|
#include <mach/hardware.h>
|
|
|
|
|
|
|
|
static struct resource *puv3_rtc_mem;
|
|
|
|
|
|
|
|
static int puv3_rtc_alarmno = IRQ_RTCAlarm;
|
|
|
|
static int puv3_rtc_tickno = IRQ_RTC;
|
|
|
|
|
|
|
|
static DEFINE_SPINLOCK(puv3_rtc_pie_lock);
|
|
|
|
|
|
|
|
/* IRQ Handlers */
|
|
|
|
static irqreturn_t puv3_rtc_alarmirq(int irq, void *id)
|
|
|
|
{
|
|
|
|
struct rtc_device *rdev = id;
|
|
|
|
|
2011-02-26 14:21:18 +01:00
|
|
|
writel(readl(RTC_RTSR) | RTC_RTSR_AL, RTC_RTSR);
|
2011-01-15 11:19:03 +01:00
|
|
|
rtc_update_irq(rdev, 1, RTC_AF | RTC_IRQF);
|
|
|
|
return IRQ_HANDLED;
|
|
|
|
}
|
|
|
|
|
|
|
|
static irqreturn_t puv3_rtc_tickirq(int irq, void *id)
|
|
|
|
{
|
|
|
|
struct rtc_device *rdev = id;
|
|
|
|
|
2011-02-26 14:21:18 +01:00
|
|
|
writel(readl(RTC_RTSR) | RTC_RTSR_HZ, RTC_RTSR);
|
2011-01-15 11:19:03 +01:00
|
|
|
rtc_update_irq(rdev, 1, RTC_PF | RTC_IRQF);
|
|
|
|
return IRQ_HANDLED;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Update control registers */
|
2013-11-13 00:11:00 +01:00
|
|
|
static void puv3_rtc_setaie(struct device *dev, int to)
|
2011-01-15 11:19:03 +01:00
|
|
|
{
|
|
|
|
unsigned int tmp;
|
|
|
|
|
2013-11-13 00:11:00 +01:00
|
|
|
dev_dbg(dev, "%s: aie=%d\n", __func__, to);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
2011-02-26 14:21:18 +01:00
|
|
|
tmp = readl(RTC_RTSR) & ~RTC_RTSR_ALE;
|
2011-01-15 11:19:03 +01:00
|
|
|
|
|
|
|
if (to)
|
|
|
|
tmp |= RTC_RTSR_ALE;
|
|
|
|
|
2011-02-26 14:21:18 +01:00
|
|
|
writel(tmp, RTC_RTSR);
|
2011-01-15 11:19:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static int puv3_rtc_setpie(struct device *dev, int enabled)
|
|
|
|
{
|
|
|
|
unsigned int tmp;
|
|
|
|
|
2014-05-03 07:07:57 +02:00
|
|
|
dev_dbg(dev, "%s: pie=%d\n", __func__, enabled);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
|
|
|
spin_lock_irq(&puv3_rtc_pie_lock);
|
2011-02-26 14:21:18 +01:00
|
|
|
tmp = readl(RTC_RTSR) & ~RTC_RTSR_HZE;
|
2011-01-15 11:19:03 +01:00
|
|
|
|
|
|
|
if (enabled)
|
|
|
|
tmp |= RTC_RTSR_HZE;
|
|
|
|
|
2011-02-26 14:21:18 +01:00
|
|
|
writel(tmp, RTC_RTSR);
|
2011-01-15 11:19:03 +01:00
|
|
|
spin_unlock_irq(&puv3_rtc_pie_lock);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Time read/write */
|
|
|
|
static int puv3_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm)
|
|
|
|
{
|
2011-02-26 14:21:18 +01:00
|
|
|
rtc_time_to_tm(readl(RTC_RCNR), rtc_tm);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
2018-12-04 22:23:21 +01:00
|
|
|
dev_dbg(dev, "read time %ptRr\n", rtc_tm);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int puv3_rtc_settime(struct device *dev, struct rtc_time *tm)
|
|
|
|
{
|
|
|
|
unsigned long rtc_count = 0;
|
|
|
|
|
2018-12-04 22:23:21 +01:00
|
|
|
dev_dbg(dev, "set time %ptRr\n", tm);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
|
|
|
rtc_tm_to_time(tm, &rtc_count);
|
2011-02-26 14:21:18 +01:00
|
|
|
writel(rtc_count, RTC_RCNR);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int puv3_rtc_getalarm(struct device *dev, struct rtc_wkalrm *alrm)
|
|
|
|
{
|
|
|
|
struct rtc_time *alm_tm = &alrm->time;
|
|
|
|
|
2011-02-26 14:21:18 +01:00
|
|
|
rtc_time_to_tm(readl(RTC_RTAR), alm_tm);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
2011-02-26 14:21:18 +01:00
|
|
|
alrm->enabled = readl(RTC_RTSR) & RTC_RTSR_ALE;
|
2011-01-15 11:19:03 +01:00
|
|
|
|
2018-12-04 22:23:21 +01:00
|
|
|
dev_dbg(dev, "read alarm: %d, %ptRr\n", alrm->enabled, alm_tm);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int puv3_rtc_setalarm(struct device *dev, struct rtc_wkalrm *alrm)
|
|
|
|
{
|
|
|
|
struct rtc_time *tm = &alrm->time;
|
|
|
|
unsigned long rtcalarm_count = 0;
|
|
|
|
|
2018-12-04 22:23:21 +01:00
|
|
|
dev_dbg(dev, "set alarm: %d, %ptRr\n", alrm->enabled, tm);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
|
|
|
rtc_tm_to_time(tm, &rtcalarm_count);
|
2011-02-26 14:21:18 +01:00
|
|
|
writel(rtcalarm_count, RTC_RTAR);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
2014-05-03 07:09:02 +02:00
|
|
|
puv3_rtc_setaie(dev, alrm->enabled);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
|
|
|
if (alrm->enabled)
|
|
|
|
enable_irq_wake(puv3_rtc_alarmno);
|
|
|
|
else
|
|
|
|
disable_irq_wake(puv3_rtc_alarmno);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int puv3_rtc_proc(struct device *dev, struct seq_file *seq)
|
|
|
|
{
|
|
|
|
seq_printf(seq, "periodic_IRQ\t: %s\n",
|
2011-02-26 14:21:18 +01:00
|
|
|
(readl(RTC_RTSR) & RTC_RTSR_HZE) ? "yes" : "no");
|
2011-01-15 11:19:03 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const struct rtc_class_ops puv3_rtcops = {
|
|
|
|
.read_time = puv3_rtc_gettime,
|
|
|
|
.set_time = puv3_rtc_settime,
|
|
|
|
.read_alarm = puv3_rtc_getalarm,
|
|
|
|
.set_alarm = puv3_rtc_setalarm,
|
|
|
|
.proc = puv3_rtc_proc,
|
|
|
|
};
|
|
|
|
|
2013-04-30 01:21:02 +02:00
|
|
|
static void puv3_rtc_enable(struct device *dev, int en)
|
2011-01-15 11:19:03 +01:00
|
|
|
{
|
|
|
|
if (!en) {
|
2011-02-26 14:21:18 +01:00
|
|
|
writel(readl(RTC_RTSR) & ~RTC_RTSR_HZE, RTC_RTSR);
|
2011-01-15 11:19:03 +01:00
|
|
|
} else {
|
|
|
|
/* re-enable the device, and check it is ok */
|
2011-02-26 14:21:18 +01:00
|
|
|
if ((readl(RTC_RTSR) & RTC_RTSR_HZE) == 0) {
|
2013-04-30 01:21:02 +02:00
|
|
|
dev_info(dev, "rtc disabled, re-enabling\n");
|
2011-02-26 14:21:18 +01:00
|
|
|
writel(readl(RTC_RTSR) | RTC_RTSR_HZE, RTC_RTSR);
|
2011-01-15 11:19:03 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-12-21 22:09:38 +01:00
|
|
|
static int puv3_rtc_remove(struct platform_device *dev)
|
2011-01-15 11:19:03 +01:00
|
|
|
{
|
|
|
|
puv3_rtc_setpie(&dev->dev, 0);
|
2013-11-13 00:11:00 +01:00
|
|
|
puv3_rtc_setaie(&dev->dev, 0);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
|
|
|
release_resource(puv3_rtc_mem);
|
|
|
|
kfree(puv3_rtc_mem);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-12-21 22:09:38 +01:00
|
|
|
static int puv3_rtc_probe(struct platform_device *pdev)
|
2011-01-15 11:19:03 +01:00
|
|
|
{
|
|
|
|
struct rtc_device *rtc;
|
|
|
|
struct resource *res;
|
|
|
|
int ret;
|
|
|
|
|
2013-11-13 00:11:00 +01:00
|
|
|
dev_dbg(&pdev->dev, "%s: probe=%p\n", __func__, pdev);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
|
|
|
/* find the IRQs */
|
|
|
|
puv3_rtc_tickno = platform_get_irq(pdev, 1);
|
|
|
|
if (puv3_rtc_tickno < 0) {
|
|
|
|
dev_err(&pdev->dev, "no irq for rtc tick\n");
|
|
|
|
return -ENOENT;
|
|
|
|
}
|
|
|
|
|
|
|
|
puv3_rtc_alarmno = platform_get_irq(pdev, 0);
|
|
|
|
if (puv3_rtc_alarmno < 0) {
|
|
|
|
dev_err(&pdev->dev, "no irq for alarm\n");
|
|
|
|
return -ENOENT;
|
|
|
|
}
|
|
|
|
|
2013-11-13 00:11:00 +01:00
|
|
|
dev_dbg(&pdev->dev, "PKUnity_rtc: tick irq %d, alarm irq %d\n",
|
2011-01-15 11:19:03 +01:00
|
|
|
puv3_rtc_tickno, puv3_rtc_alarmno);
|
|
|
|
|
2017-08-22 11:48:41 +02:00
|
|
|
rtc = devm_rtc_allocate_device(&pdev->dev);
|
|
|
|
if (IS_ERR(rtc))
|
|
|
|
return PTR_ERR(rtc);
|
|
|
|
|
2017-08-22 11:59:07 +02:00
|
|
|
ret = devm_request_irq(&pdev->dev, puv3_rtc_alarmno, puv3_rtc_alarmirq,
|
|
|
|
0, "pkunity-rtc alarm", rtc);
|
|
|
|
if (ret) {
|
|
|
|
dev_err(&pdev->dev, "IRQ%d error %d\n", puv3_rtc_alarmno, ret);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
ret = devm_request_irq(&pdev->dev, puv3_rtc_tickno, puv3_rtc_tickirq,
|
|
|
|
0, "pkunity-rtc tick", rtc);
|
|
|
|
if (ret) {
|
|
|
|
dev_err(&pdev->dev, "IRQ%d error %d\n", puv3_rtc_tickno, ret);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2011-01-15 11:19:03 +01:00
|
|
|
/* get the memory region */
|
|
|
|
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
|
|
|
if (res == NULL) {
|
|
|
|
dev_err(&pdev->dev, "failed to get memory region resource\n");
|
|
|
|
return -ENOENT;
|
|
|
|
}
|
|
|
|
|
2011-06-09 18:13:32 +02:00
|
|
|
puv3_rtc_mem = request_mem_region(res->start, resource_size(res),
|
|
|
|
pdev->name);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
|
|
|
if (puv3_rtc_mem == NULL) {
|
|
|
|
dev_err(&pdev->dev, "failed to reserve memory region\n");
|
|
|
|
ret = -ENOENT;
|
|
|
|
goto err_nores;
|
|
|
|
}
|
|
|
|
|
2013-04-30 01:21:02 +02:00
|
|
|
puv3_rtc_enable(&pdev->dev, 1);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
|
|
|
/* register RTC and exit */
|
2017-08-22 11:48:41 +02:00
|
|
|
rtc->ops = &puv3_rtcops;
|
|
|
|
ret = rtc_register_device(rtc);
|
|
|
|
if (ret) {
|
2011-01-15 11:19:03 +01:00
|
|
|
dev_err(&pdev->dev, "cannot attach rtc\n");
|
|
|
|
goto err_nortc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* platform setup code should have handled this; sigh */
|
|
|
|
if (!device_can_wakeup(&pdev->dev))
|
|
|
|
device_init_wakeup(&pdev->dev, 1);
|
|
|
|
|
|
|
|
platform_set_drvdata(pdev, rtc);
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
err_nortc:
|
2013-04-30 01:21:02 +02:00
|
|
|
puv3_rtc_enable(&pdev->dev, 0);
|
2011-01-15 11:19:03 +01:00
|
|
|
release_resource(puv3_rtc_mem);
|
|
|
|
|
|
|
|
err_nores:
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2013-04-30 01:21:02 +02:00
|
|
|
#ifdef CONFIG_PM_SLEEP
|
2011-01-15 11:19:03 +01:00
|
|
|
static int ticnt_save;
|
|
|
|
|
2013-04-30 01:21:02 +02:00
|
|
|
static int puv3_rtc_suspend(struct device *dev)
|
2011-01-15 11:19:03 +01:00
|
|
|
{
|
|
|
|
/* save RTAR for anyone using periodic interrupts */
|
2011-02-26 14:21:18 +01:00
|
|
|
ticnt_save = readl(RTC_RTAR);
|
2013-04-30 01:21:02 +02:00
|
|
|
puv3_rtc_enable(dev, 0);
|
2011-01-15 11:19:03 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2013-04-30 01:21:02 +02:00
|
|
|
static int puv3_rtc_resume(struct device *dev)
|
2011-01-15 11:19:03 +01:00
|
|
|
{
|
2013-04-30 01:21:02 +02:00
|
|
|
puv3_rtc_enable(dev, 1);
|
2011-02-26 14:21:18 +01:00
|
|
|
writel(ticnt_save, RTC_RTAR);
|
2011-01-15 11:19:03 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-04-30 01:21:02 +02:00
|
|
|
static SIMPLE_DEV_PM_OPS(puv3_rtc_pm_ops, puv3_rtc_suspend, puv3_rtc_resume);
|
|
|
|
|
rtc-puv3: solve section mismatch in rtc-puv3.c
The patch renames puv3_rtcdrv to puv3_rtc_driver, so that modpost will know
that this is simply a list of pointers to driver functions, in which case
the section mismatch is OK. (Thanks Michal Marek)
Cc: Axel Lin <axel.lin@gmail.com>
Cc: Michal Marek <mmarek@suse.cz>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: rtc-linux@googlegroups.com
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
--
Section mismatch warning information:
WARNING: drivers/rtc/built-in.o(.data+0x90): Section mismatch in
reference from the variable puv3_rtcdrv to the
function .devinit.text:puv3_rtc_probe()
The variable puv3_rtcdrv references
the function __devinit puv3_rtc_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the
variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console
WARNING: drivers/rtc/built-in.o(.data+0x94): Section mismatch in
reference from the variable puv3_rtcdrv to the
function .devexit.text:puv3_rtc_remove()
The variable puv3_rtcdrv references
the function __devexit puv3_rtc_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console
WARNING: drivers/built-in.o(.data+0x6c04): Section mismatch in reference
from the variable puv3_rtcdrv to the
function .devinit.text:puv3_rtc_probe()
The variable puv3_rtcdrv references
the function __devinit puv3_rtc_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the
variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console
WARNING: drivers/built-in.o(.data+0x6c08): Section mismatch in reference
from the variable puv3_rtcdrv to the
function .devexit.text:puv3_rtc_remove()
The variable puv3_rtcdrv references
the function __devexit puv3_rtc_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console
WARNING: vmlinux.o(.data+0x1126c): Section mismatch in reference from
the variable puv3_rtcdrv to the function .devinit.text:puv3_rtc_probe()
The variable puv3_rtcdrv references
the function __devinit puv3_rtc_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the
variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console
WARNING: vmlinux.o(.data+0x11270): Section mismatch in reference from
the variable puv3_rtcdrv to the function .devexit.text:puv3_rtc_remove()
The variable puv3_rtcdrv references
the function __devexit puv3_rtc_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console
2011-12-28 02:24:29 +01:00
|
|
|
static struct platform_driver puv3_rtc_driver = {
|
2011-01-15 11:19:03 +01:00
|
|
|
.probe = puv3_rtc_probe,
|
2012-12-21 22:09:38 +01:00
|
|
|
.remove = puv3_rtc_remove,
|
2011-01-15 11:19:03 +01:00
|
|
|
.driver = {
|
|
|
|
.name = "PKUnity-v3-RTC",
|
2013-04-30 01:21:02 +02:00
|
|
|
.pm = &puv3_rtc_pm_ops,
|
2011-01-15 11:19:03 +01:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
rtc-puv3: solve section mismatch in rtc-puv3.c
The patch renames puv3_rtcdrv to puv3_rtc_driver, so that modpost will know
that this is simply a list of pointers to driver functions, in which case
the section mismatch is OK. (Thanks Michal Marek)
Cc: Axel Lin <axel.lin@gmail.com>
Cc: Michal Marek <mmarek@suse.cz>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: rtc-linux@googlegroups.com
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
--
Section mismatch warning information:
WARNING: drivers/rtc/built-in.o(.data+0x90): Section mismatch in
reference from the variable puv3_rtcdrv to the
function .devinit.text:puv3_rtc_probe()
The variable puv3_rtcdrv references
the function __devinit puv3_rtc_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the
variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console
WARNING: drivers/rtc/built-in.o(.data+0x94): Section mismatch in
reference from the variable puv3_rtcdrv to the
function .devexit.text:puv3_rtc_remove()
The variable puv3_rtcdrv references
the function __devexit puv3_rtc_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console
WARNING: drivers/built-in.o(.data+0x6c04): Section mismatch in reference
from the variable puv3_rtcdrv to the
function .devinit.text:puv3_rtc_probe()
The variable puv3_rtcdrv references
the function __devinit puv3_rtc_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the
variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console
WARNING: drivers/built-in.o(.data+0x6c08): Section mismatch in reference
from the variable puv3_rtcdrv to the
function .devexit.text:puv3_rtc_remove()
The variable puv3_rtcdrv references
the function __devexit puv3_rtc_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console
WARNING: vmlinux.o(.data+0x1126c): Section mismatch in reference from
the variable puv3_rtcdrv to the function .devinit.text:puv3_rtc_probe()
The variable puv3_rtcdrv references
the function __devinit puv3_rtc_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the
variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console
WARNING: vmlinux.o(.data+0x11270): Section mismatch in reference from
the variable puv3_rtcdrv to the function .devexit.text:puv3_rtc_remove()
The variable puv3_rtcdrv references
the function __devexit puv3_rtc_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console
2011-12-28 02:24:29 +01:00
|
|
|
module_platform_driver(puv3_rtc_driver);
|
2011-01-15 11:19:03 +01:00
|
|
|
|
|
|
|
MODULE_DESCRIPTION("RTC Driver for the PKUnity v3 chip");
|
|
|
|
MODULE_AUTHOR("Hu Dongliang");
|
|
|
|
MODULE_LICENSE("GPL v2");
|