rtc-pxa.c (94bd217e2d683719ab21a4ac117d8a1b91cbedc9) | rtc-pxa.c (2f6e5f9458646263d3d9ffadd5e11e3d8d15a7d0) |
---|---|
1/* 2 * Real Time Clock interface for XScale PXA27x and PXA3xx 3 * 4 * Copyright (C) 2008 Robert Jarzmik 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 160 unchanged lines hidden (view full) --- 169 return IRQ_HANDLED; 170} 171 172static int pxa_rtc_open(struct device *dev) 173{ 174 struct pxa_rtc *pxa_rtc = dev_get_drvdata(dev); 175 int ret; 176 | 1/* 2 * Real Time Clock interface for XScale PXA27x and PXA3xx 3 * 4 * Copyright (C) 2008 Robert Jarzmik 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 160 unchanged lines hidden (view full) --- 169 return IRQ_HANDLED; 170} 171 172static int pxa_rtc_open(struct device *dev) 173{ 174 struct pxa_rtc *pxa_rtc = dev_get_drvdata(dev); 175 int ret; 176 |
177 ret = request_irq(pxa_rtc->irq_1Hz, pxa_rtc_irq, IRQF_DISABLED, | 177 ret = request_irq(pxa_rtc->irq_1Hz, pxa_rtc_irq, 0, |
178 "rtc 1Hz", dev); 179 if (ret < 0) { 180 dev_err(dev, "can't get irq %i, err %d\n", pxa_rtc->irq_1Hz, 181 ret); 182 goto err_irq_1Hz; 183 } | 178 "rtc 1Hz", dev); 179 if (ret < 0) { 180 dev_err(dev, "can't get irq %i, err %d\n", pxa_rtc->irq_1Hz, 181 ret); 182 goto err_irq_1Hz; 183 } |
184 ret = request_irq(pxa_rtc->irq_Alrm, pxa_rtc_irq, IRQF_DISABLED, | 184 ret = request_irq(pxa_rtc->irq_Alrm, pxa_rtc_irq, 0, |
185 "rtc Alrm", dev); 186 if (ret < 0) { 187 dev_err(dev, "can't get irq %i, err %d\n", pxa_rtc->irq_Alrm, 188 ret); 189 goto err_irq_Alrm; 190 } 191 192 return 0; --- 261 unchanged lines hidden --- | 185 "rtc Alrm", dev); 186 if (ret < 0) { 187 dev_err(dev, "can't get irq %i, err %d\n", pxa_rtc->irq_Alrm, 188 ret); 189 goto err_irq_Alrm; 190 } 191 192 return 0; --- 261 unchanged lines hidden --- |