rtc-lpc32xx.c (4ba24fef3eb3b142197135223b90ced2f319cd53) rtc-lpc32xx.c (529af7d1982562eafdc01760d44d990c7e3dcd82)
1/*
2 * Copyright (C) 2010 NXP Semiconductors
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

--- 191 unchanged lines hidden (view full) ---

200static int lpc32xx_rtc_probe(struct platform_device *pdev)
201{
202 struct resource *res;
203 struct lpc32xx_rtc *rtc;
204 int rtcirq;
205 u32 tmp;
206
207 rtcirq = platform_get_irq(pdev, 0);
1/*
2 * Copyright (C) 2010 NXP Semiconductors
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

--- 191 unchanged lines hidden (view full) ---

200static int lpc32xx_rtc_probe(struct platform_device *pdev)
201{
202 struct resource *res;
203 struct lpc32xx_rtc *rtc;
204 int rtcirq;
205 u32 tmp;
206
207 rtcirq = platform_get_irq(pdev, 0);
208 if (rtcirq < 0 || rtcirq >= NR_IRQS) {
208 if (rtcirq < 0) {
209 dev_warn(&pdev->dev, "Can't get interrupt resource\n");
210 rtcirq = -1;
211 }
212
213 rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL);
214 if (unlikely(!rtc))
215 return -ENOMEM;
216

--- 176 unchanged lines hidden ---
209 dev_warn(&pdev->dev, "Can't get interrupt resource\n");
210 rtcirq = -1;
211 }
212
213 rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL);
214 if (unlikely(!rtc))
215 return -ENOMEM;
216

--- 176 unchanged lines hidden ---