|
@@ -258,6 +258,8 @@ static int __devinit max8925_rtc_probe(struct platform_device *pdev)
|
|
}
|
|
}
|
|
|
|
|
|
dev_set_drvdata(&pdev->dev, info);
|
|
dev_set_drvdata(&pdev->dev, info);
|
|
|
|
+ /* XXX - isn't this redundant? */
|
|
|
|
+ platform_set_drvdata(pdev, info);
|
|
|
|
|
|
info->rtc_dev = rtc_device_register("max8925-rtc", &pdev->dev,
|
|
info->rtc_dev = rtc_device_register("max8925-rtc", &pdev->dev,
|
|
&max8925_rtc_ops, THIS_MODULE);
|
|
&max8925_rtc_ops, THIS_MODULE);
|
|
@@ -267,10 +269,9 @@ static int __devinit max8925_rtc_probe(struct platform_device *pdev)
|
|
goto out_rtc;
|
|
goto out_rtc;
|
|
}
|
|
}
|
|
|
|
|
|
- platform_set_drvdata(pdev, info);
|
|
|
|
-
|
|
|
|
return 0;
|
|
return 0;
|
|
out_rtc:
|
|
out_rtc:
|
|
|
|
+ platform_set_drvdata(pdev, NULL);
|
|
free_irq(chip->irq_base + MAX8925_IRQ_RTC_ALARM0, info);
|
|
free_irq(chip->irq_base + MAX8925_IRQ_RTC_ALARM0, info);
|
|
out_irq:
|
|
out_irq:
|
|
kfree(info);
|
|
kfree(info);
|