rtc-stk17ta8.c (7483d45f0aee3afc0646d185cabd4af9f6cab58c) | rtc-stk17ta8.c (2f6e5f9458646263d3d9ffadd5e11e3d8d15a7d0) |
---|---|
1/* 2 * A RTC driver for the Simtek STK17TA8 3 * 4 * By Thomas Hommel <thomas.hommel@ge.com> 5 * 6 * Based on the DS1553 driver from 7 * Atsushi Nemoto <anemo@mba.ocn.ne.jp> 8 * --- 315 unchanged lines hidden (view full) --- 324 325 spin_lock_init(&pdata->lock); 326 pdata->last_jiffies = jiffies; 327 platform_set_drvdata(pdev, pdata); 328 if (pdata->irq > 0) { 329 writeb(0, ioaddr + RTC_INTERRUPTS); 330 if (devm_request_irq(&pdev->dev, pdata->irq, 331 stk17ta8_rtc_interrupt, | 1/* 2 * A RTC driver for the Simtek STK17TA8 3 * 4 * By Thomas Hommel <thomas.hommel@ge.com> 5 * 6 * Based on the DS1553 driver from 7 * Atsushi Nemoto <anemo@mba.ocn.ne.jp> 8 * --- 315 unchanged lines hidden (view full) --- 324 325 spin_lock_init(&pdata->lock); 326 pdata->last_jiffies = jiffies; 327 platform_set_drvdata(pdev, pdata); 328 if (pdata->irq > 0) { 329 writeb(0, ioaddr + RTC_INTERRUPTS); 330 if (devm_request_irq(&pdev->dev, pdata->irq, 331 stk17ta8_rtc_interrupt, |
332 IRQF_DISABLED | IRQF_SHARED, | 332 IRQF_SHARED, |
333 pdev->name, pdev) < 0) { 334 dev_warn(&pdev->dev, "interrupt not available.\n"); 335 pdata->irq = 0; 336 } 337 } 338 339 pdata->rtc = rtc_device_register(pdev->name, &pdev->dev, 340 &stk17ta8_rtc_ops, THIS_MODULE); --- 38 unchanged lines hidden --- | 333 pdev->name, pdev) < 0) { 334 dev_warn(&pdev->dev, "interrupt not available.\n"); 335 pdata->irq = 0; 336 } 337 } 338 339 pdata->rtc = rtc_device_register(pdev->name, &pdev->dev, 340 &stk17ta8_rtc_ops, THIS_MODULE); --- 38 unchanged lines hidden --- |