aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/time_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/kernel/time_32.c')
-rw-r--r--arch/sparc/kernel/time_32.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/sparc/kernel/time_32.c b/arch/sparc/kernel/time_32.c
index 4453003032b5..e404b063be2c 100644
--- a/arch/sparc/kernel/time_32.c
+++ b/arch/sparc/kernel/time_32.c
@@ -144,7 +144,7 @@ static struct platform_device m48t59_rtc = {
144 144
145static int __devinit clock_probe(struct of_device *op, const struct of_device_id *match) 145static int __devinit clock_probe(struct of_device *op, const struct of_device_id *match)
146{ 146{
147 struct device_node *dp = op->node; 147 struct device_node *dp = op->dev.of_node;
148 const char *model = of_get_property(dp, "model", NULL); 148 const char *model = of_get_property(dp, "model", NULL);
149 149
150 if (!model) 150 if (!model)
@@ -177,10 +177,11 @@ static struct of_device_id __initdata clock_match[] = {
177}; 177};
178 178
179static struct of_platform_driver clock_driver = { 179static struct of_platform_driver clock_driver = {
180 .match_table = clock_match,
181 .probe = clock_probe, 180 .probe = clock_probe,
182 .driver = { 181 .driver = {
183 .name = "rtc", 182 .name = "rtc",
183 .owner = THIS_MODULE,
184 .of_match_table = clock_match,
184 }, 185 },
185}; 186};
186 187