rtc-ds1553.c (7483d45f0aee3afc0646d185cabd4af9f6cab58c) | rtc-ds1553.c (2f6e5f9458646263d3d9ffadd5e11e3d8d15a7d0) |
---|---|
1/* 2 * An rtc driver for the Dallas DS1553 3 * 4 * Copyright (C) 2006 Atsushi Nemoto <anemo@mba.ocn.ne.jp> 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 version 2 as 8 * published by the Free Software Foundation. --- 306 unchanged lines hidden (view full) --- 315 316 spin_lock_init(&pdata->lock); 317 pdata->last_jiffies = jiffies; 318 platform_set_drvdata(pdev, pdata); 319 if (pdata->irq > 0) { 320 writeb(0, ioaddr + RTC_INTERRUPTS); 321 if (devm_request_irq(&pdev->dev, pdata->irq, 322 ds1553_rtc_interrupt, | 1/* 2 * An rtc driver for the Dallas DS1553 3 * 4 * Copyright (C) 2006 Atsushi Nemoto <anemo@mba.ocn.ne.jp> 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 version 2 as 8 * published by the Free Software Foundation. --- 306 unchanged lines hidden (view full) --- 315 316 spin_lock_init(&pdata->lock); 317 pdata->last_jiffies = jiffies; 318 platform_set_drvdata(pdev, pdata); 319 if (pdata->irq > 0) { 320 writeb(0, ioaddr + RTC_INTERRUPTS); 321 if (devm_request_irq(&pdev->dev, pdata->irq, 322 ds1553_rtc_interrupt, |
323 IRQF_DISABLED, pdev->name, pdev) < 0) { | 323 0, pdev->name, pdev) < 0) { |
324 dev_warn(&pdev->dev, "interrupt not available.\n"); 325 pdata->irq = 0; 326 } 327 } 328 329 rtc = rtc_device_register(pdev->name, &pdev->dev, 330 &ds1553_rtc_ops, THIS_MODULE); 331 if (IS_ERR(rtc)) --- 38 unchanged lines hidden --- | 324 dev_warn(&pdev->dev, "interrupt not available.\n"); 325 pdata->irq = 0; 326 } 327 } 328 329 rtc = rtc_device_register(pdev->name, &pdev->dev, 330 &ds1553_rtc_ops, THIS_MODULE); 331 if (IS_ERR(rtc)) --- 38 unchanged lines hidden --- |