rtc-at91sam9.c (7483d45f0aee3afc0646d185cabd4af9f6cab58c) | rtc-at91sam9.c (2f6e5f9458646263d3d9ffadd5e11e3d8d15a7d0) |
---|---|
1/* 2 * "RTT as Real Time Clock" driver for AT91SAM9 SoC family 3 * 4 * (C) 2007 Michel Benoit 5 * 6 * Based on rtc-at91rm9200.c by Rick Bronson 7 * 8 * This program is free software; you can redistribute it and/or --- 321 unchanged lines hidden (view full) --- 330 &at91_rtc_ops, THIS_MODULE); 331 if (IS_ERR(rtc->rtcdev)) { 332 ret = PTR_ERR(rtc->rtcdev); 333 goto fail_register; 334 } 335 336 /* register irq handler after we know what name we'll use */ 337 ret = request_irq(AT91_ID_SYS, at91_rtc_interrupt, | 1/* 2 * "RTT as Real Time Clock" driver for AT91SAM9 SoC family 3 * 4 * (C) 2007 Michel Benoit 5 * 6 * Based on rtc-at91rm9200.c by Rick Bronson 7 * 8 * This program is free software; you can redistribute it and/or --- 321 unchanged lines hidden (view full) --- 330 &at91_rtc_ops, THIS_MODULE); 331 if (IS_ERR(rtc->rtcdev)) { 332 ret = PTR_ERR(rtc->rtcdev); 333 goto fail_register; 334 } 335 336 /* register irq handler after we know what name we'll use */ 337 ret = request_irq(AT91_ID_SYS, at91_rtc_interrupt, |
338 IRQF_DISABLED | IRQF_SHARED, | 338 IRQF_SHARED, |
339 dev_name(&rtc->rtcdev->dev), rtc); 340 if (ret) { 341 dev_dbg(&pdev->dev, "can't share IRQ %d?\n", AT91_ID_SYS); 342 rtc_device_unregister(rtc->rtcdev); 343 goto fail; 344 } 345 346 /* NOTE: sam9260 rev A silicon has a ROM bug which resets the --- 166 unchanged lines hidden --- | 339 dev_name(&rtc->rtcdev->dev), rtc); 340 if (ret) { 341 dev_dbg(&pdev->dev, "can't share IRQ %d?\n", AT91_ID_SYS); 342 rtc_device_unregister(rtc->rtcdev); 343 goto fail; 344 } 345 346 /* NOTE: sam9260 rev A silicon has a ROM bug which resets the --- 166 unchanged lines hidden --- |