diff options
-rw-r--r-- | drivers/rtc/rtc-davinci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-davinci.c b/drivers/rtc/rtc-davinci.c index 24677ef8c39a..1f3495e4e634 100644 --- a/drivers/rtc/rtc-davinci.c +++ b/drivers/rtc/rtc-davinci.c | |||
@@ -486,10 +486,8 @@ static int __init davinci_rtc_probe(struct platform_device *pdev) | |||
486 | int ret = 0; | 486 | int ret = 0; |
487 | 487 | ||
488 | davinci_rtc = devm_kzalloc(&pdev->dev, sizeof(struct davinci_rtc), GFP_KERNEL); | 488 | davinci_rtc = devm_kzalloc(&pdev->dev, sizeof(struct davinci_rtc), GFP_KERNEL); |
489 | if (!davinci_rtc) { | 489 | if (!davinci_rtc) |
490 | dev_dbg(dev, "could not allocate memory for private data\n"); | ||
491 | return -ENOMEM; | 490 | return -ENOMEM; |
492 | } | ||
493 | 491 | ||
494 | davinci_rtc->irq = platform_get_irq(pdev, 0); | 492 | davinci_rtc->irq = platform_get_irq(pdev, 0); |
495 | if (davinci_rtc->irq < 0) { | 493 | if (davinci_rtc->irq < 0) { |