* [PATCH] rtc: tegra: convert to DT driver
@ 2012-12-19 2:47 Joseph Lo
2012-12-19 17:09 ` Stephen Warren
0 siblings, 1 reply; 2+ messages in thread
From: Joseph Lo @ 2012-12-19 2:47 UTC (permalink / raw)
To: linux-arm-kernel
After Kernel 3.7, the Tegra device will only support booting with DT. The
legacy Tegra RTC platform driver will not work anymore. This patch convert
the driver to support DT.
Signed-off-by: Joseph Lo <josephl@nvidia.com>
---
drivers/rtc/rtc-tegra.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/rtc/rtc-tegra.c b/drivers/rtc/rtc-tegra.c
index c006025..fb62808 100644
--- a/drivers/rtc/rtc-tegra.c
+++ b/drivers/rtc/rtc-tegra.c
@@ -303,6 +303,12 @@ static struct rtc_class_ops tegra_rtc_ops = {
.alarm_irq_enable = tegra_rtc_alarm_irq_enable,
};
+static const struct of_device_id tegra_rtc_dt_match[] = {
+ { .compatible = "nvidia,tegra20-rtc", },
+ {}
+};
+MODULE_DEVICE_TABLE(of, tegra_rtc_dt_match);
+
static int __devinit tegra_rtc_probe(struct platform_device *pdev)
{
struct tegra_rtc_info *info;
@@ -440,6 +446,7 @@ static struct platform_driver tegra_rtc_driver = {
.driver = {
.name = "tegra_rtc",
.owner = THIS_MODULE,
+ .of_match_table = tegra_rtc_dt_match,
},
#ifdef CONFIG_PM
.suspend = tegra_rtc_suspend,
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] rtc: tegra: convert to DT driver
2012-12-19 2:47 [PATCH] rtc: tegra: convert to DT driver Joseph Lo
@ 2012-12-19 17:09 ` Stephen Warren
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Warren @ 2012-12-19 17:09 UTC (permalink / raw)
To: linux-arm-kernel
On 12/18/2012 07:47 PM, Joseph Lo wrote:
> After Kernel 3.7, the Tegra device will only support booting with DT. The
> legacy Tegra RTC platform driver will not work anymore. This patch convert
> the driver to support DT.
I think Andrew Morton usually ends up picking up drivers/rtc/ patches
since Alessandro hasn't been active recently. But since Andrew wasn't
Cc'd, I'd be happy to take this through the Tegra tree for 3.9.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-19 17:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-19 2:47 [PATCH] rtc: tegra: convert to DT driver Joseph Lo
2012-12-19 17:09 ` Stephen Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).