rtc-lpc32xx.c (7483d45f0aee3afc0646d185cabd4af9f6cab58c) | rtc-lpc32xx.c (2f6e5f9458646263d3d9ffadd5e11e3d8d15a7d0) |
---|---|
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 * --- 273 unchanged lines hidden (view full) --- 282 283 /* 284 * IRQ is enabled after device registration in case alarm IRQ 285 * is pending upon suspend exit. 286 */ 287 if (rtc->irq >= 0) { 288 if (devm_request_irq(&pdev->dev, rtc->irq, 289 lpc32xx_rtc_alarm_interrupt, | 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 * --- 273 unchanged lines hidden (view full) --- 282 283 /* 284 * IRQ is enabled after device registration in case alarm IRQ 285 * is pending upon suspend exit. 286 */ 287 if (rtc->irq >= 0) { 288 if (devm_request_irq(&pdev->dev, rtc->irq, 289 lpc32xx_rtc_alarm_interrupt, |
290 IRQF_DISABLED, pdev->name, rtc) < 0) { | 290 0, pdev->name, rtc) < 0) { |
291 dev_warn(&pdev->dev, "Can't request interrupt.\n"); 292 rtc->irq = -1; 293 } else { 294 device_init_wakeup(&pdev->dev, 1); 295 } 296 } 297 298 return 0; --- 106 unchanged lines hidden --- | 291 dev_warn(&pdev->dev, "Can't request interrupt.\n"); 292 rtc->irq = -1; 293 } else { 294 device_init_wakeup(&pdev->dev, 1); 295 } 296 } 297 298 return 0; --- 106 unchanged lines hidden --- |