diff options
Diffstat (limited to 'drivers/rtc')
| -rw-r--r-- | drivers/rtc/Kconfig | 2 | ||||
| -rw-r--r-- | drivers/rtc/rtc-max8998.c | 2 | ||||
| -rw-r--r-- | drivers/rtc/rtc-nuc900.c | 5 | ||||
| -rw-r--r-- | drivers/rtc/rtc-omap.c | 5 | ||||
| -rw-r--r-- | drivers/rtc/rtc-pl031.c | 2 | ||||
| -rw-r--r-- | drivers/rtc/rtc-s3c.c | 5 | ||||
| -rw-r--r-- | drivers/rtc/rtc-tegra.c | 6 |
7 files changed, 2 insertions, 25 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 0c81915b1997..b9838130a7b0 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig | |||
| @@ -20,7 +20,6 @@ if RTC_CLASS | |||
| 20 | config RTC_HCTOSYS | 20 | config RTC_HCTOSYS |
| 21 | bool "Set system time from RTC on startup and resume" | 21 | bool "Set system time from RTC on startup and resume" |
| 22 | default y | 22 | default y |
| 23 | depends on !ALWAYS_USE_PERSISTENT_CLOCK | ||
| 24 | help | 23 | help |
| 25 | If you say yes here, the system time (wall clock) will be set using | 24 | If you say yes here, the system time (wall clock) will be set using |
| 26 | the value read from a specified RTC device. This is useful to avoid | 25 | the value read from a specified RTC device. This is useful to avoid |
| @@ -29,7 +28,6 @@ config RTC_HCTOSYS | |||
| 29 | config RTC_SYSTOHC | 28 | config RTC_SYSTOHC |
| 30 | bool "Set the RTC time based on NTP synchronization" | 29 | bool "Set the RTC time based on NTP synchronization" |
| 31 | default y | 30 | default y |
| 32 | depends on !ALWAYS_USE_PERSISTENT_CLOCK | ||
| 33 | help | 31 | help |
| 34 | If you say yes here, the system time (wall clock) will be stored | 32 | If you say yes here, the system time (wall clock) will be stored |
| 35 | in the RTC specified by RTC_HCTOSYS_DEVICE approximately every 11 | 33 | in the RTC specified by RTC_HCTOSYS_DEVICE approximately every 11 |
diff --git a/drivers/rtc/rtc-max8998.c b/drivers/rtc/rtc-max8998.c index 48b6612fae7f..d5af7baa48b5 100644 --- a/drivers/rtc/rtc-max8998.c +++ b/drivers/rtc/rtc-max8998.c | |||
| @@ -285,7 +285,7 @@ static int max8998_rtc_probe(struct platform_device *pdev) | |||
| 285 | info->irq, ret); | 285 | info->irq, ret); |
| 286 | 286 | ||
| 287 | dev_info(&pdev->dev, "RTC CHIP NAME: %s\n", pdev->id_entry->name); | 287 | dev_info(&pdev->dev, "RTC CHIP NAME: %s\n", pdev->id_entry->name); |
| 288 | if (pdata->rtc_delay) { | 288 | if (pdata && pdata->rtc_delay) { |
| 289 | info->lp3974_bug_workaround = true; | 289 | info->lp3974_bug_workaround = true; |
| 290 | dev_warn(&pdev->dev, "LP3974 with RTC REGERR option." | 290 | dev_warn(&pdev->dev, "LP3974 with RTC REGERR option." |
| 291 | " RTC updates will be extremely slow.\n"); | 291 | " RTC updates will be extremely slow.\n"); |
diff --git a/drivers/rtc/rtc-nuc900.c b/drivers/rtc/rtc-nuc900.c index f5dfb6e5e7d9..d592e2fe43f7 100644 --- a/drivers/rtc/rtc-nuc900.c +++ b/drivers/rtc/rtc-nuc900.c | |||
| @@ -234,11 +234,6 @@ static int __init nuc900_rtc_probe(struct platform_device *pdev) | |||
| 234 | return -ENOMEM; | 234 | return -ENOMEM; |
| 235 | } | 235 | } |
| 236 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 236 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
| 237 | if (!res) { | ||
| 238 | dev_err(&pdev->dev, "platform_get_resource failed\n"); | ||
| 239 | return -ENXIO; | ||
| 240 | } | ||
| 241 | |||
| 242 | nuc900_rtc->rtc_reg = devm_ioremap_resource(&pdev->dev, res); | 237 | nuc900_rtc->rtc_reg = devm_ioremap_resource(&pdev->dev, res); |
| 243 | if (IS_ERR(nuc900_rtc->rtc_reg)) | 238 | if (IS_ERR(nuc900_rtc->rtc_reg)) |
| 244 | return PTR_ERR(nuc900_rtc->rtc_reg); | 239 | return PTR_ERR(nuc900_rtc->rtc_reg); |
diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c index 4e1bdb832e37..b0ba3fc991ea 100644 --- a/drivers/rtc/rtc-omap.c +++ b/drivers/rtc/rtc-omap.c | |||
| @@ -347,11 +347,6 @@ static int __init omap_rtc_probe(struct platform_device *pdev) | |||
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 349 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
| 350 | if (!res) { | ||
| 351 | pr_debug("%s: RTC resource data missing\n", pdev->name); | ||
| 352 | return -ENOENT; | ||
| 353 | } | ||
| 354 | |||
| 355 | rtc_base = devm_ioremap_resource(&pdev->dev, res); | 350 | rtc_base = devm_ioremap_resource(&pdev->dev, res); |
| 356 | if (IS_ERR(rtc_base)) | 351 | if (IS_ERR(rtc_base)) |
| 357 | return PTR_ERR(rtc_base); | 352 | return PTR_ERR(rtc_base); |
diff --git a/drivers/rtc/rtc-pl031.c b/drivers/rtc/rtc-pl031.c index 8900ea784817..0f0609b1aa2c 100644 --- a/drivers/rtc/rtc-pl031.c +++ b/drivers/rtc/rtc-pl031.c | |||
| @@ -306,7 +306,7 @@ static int pl031_remove(struct amba_device *adev) | |||
| 306 | struct pl031_local *ldata = dev_get_drvdata(&adev->dev); | 306 | struct pl031_local *ldata = dev_get_drvdata(&adev->dev); |
| 307 | 307 | ||
| 308 | amba_set_drvdata(adev, NULL); | 308 | amba_set_drvdata(adev, NULL); |
| 309 | free_irq(adev->irq[0], ldata->rtc); | 309 | free_irq(adev->irq[0], ldata); |
| 310 | rtc_device_unregister(ldata->rtc); | 310 | rtc_device_unregister(ldata->rtc); |
| 311 | iounmap(ldata->base); | 311 | iounmap(ldata->base); |
| 312 | kfree(ldata); | 312 | kfree(ldata); |
diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index 14040b22888d..0b495e8b8e66 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c | |||
| @@ -477,11 +477,6 @@ static int s3c_rtc_probe(struct platform_device *pdev) | |||
| 477 | /* get the memory region */ | 477 | /* get the memory region */ |
| 478 | 478 | ||
| 479 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 479 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
| 480 | if (res == NULL) { | ||
| 481 | dev_err(&pdev->dev, "failed to get memory region resource\n"); | ||
| 482 | return -ENOENT; | ||
| 483 | } | ||
| 484 | |||
| 485 | s3c_rtc_base = devm_ioremap_resource(&pdev->dev, res); | 480 | s3c_rtc_base = devm_ioremap_resource(&pdev->dev, res); |
| 486 | if (IS_ERR(s3c_rtc_base)) | 481 | if (IS_ERR(s3c_rtc_base)) |
| 487 | return PTR_ERR(s3c_rtc_base); | 482 | return PTR_ERR(s3c_rtc_base); |
diff --git a/drivers/rtc/rtc-tegra.c b/drivers/rtc/rtc-tegra.c index a34315d25478..76af92ad5a8a 100644 --- a/drivers/rtc/rtc-tegra.c +++ b/drivers/rtc/rtc-tegra.c | |||
| @@ -322,12 +322,6 @@ static int __init tegra_rtc_probe(struct platform_device *pdev) | |||
| 322 | return -ENOMEM; | 322 | return -ENOMEM; |
| 323 | 323 | ||
| 324 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 324 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
| 325 | if (!res) { | ||
| 326 | dev_err(&pdev->dev, | ||
| 327 | "Unable to allocate resources for device.\n"); | ||
| 328 | return -EBUSY; | ||
| 329 | } | ||
| 330 | |||
| 331 | info->rtc_base = devm_ioremap_resource(&pdev->dev, res); | 325 | info->rtc_base = devm_ioremap_resource(&pdev->dev, res); |
| 332 | if (IS_ERR(info->rtc_base)) | 326 | if (IS_ERR(info->rtc_base)) |
| 333 | return PTR_ERR(info->rtc_base); | 327 | return PTR_ERR(info->rtc_base); |
