aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/rtc/rtc-lpc32xx.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-lpc32xx.c b/drivers/rtc/rtc-lpc32xx.c
index bfdbcb82d069..f130c08c98f8 100644
--- a/drivers/rtc/rtc-lpc32xx.c
+++ b/drivers/rtc/rtc-lpc32xx.c
@@ -211,10 +211,9 @@ static int lpc32xx_rtc_probe(struct platform_device *pdev)
211 } 211 }
212 212
213 rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL); 213 rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL);
214 if (unlikely(!rtc)) { 214 if (unlikely(!rtc))
215 dev_err(&pdev->dev, "Can't allocate memory\n");
216 return -ENOMEM; 215 return -ENOMEM;
217 } 216
218 rtc->irq = rtcirq; 217 rtc->irq = rtcirq;
219 218
220 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 219 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);