rtc-ds1511.c (7483d45f0aee3afc0646d185cabd4af9f6cab58c) rtc-ds1511.c (2f6e5f9458646263d3d9ffadd5e11e3d8d15a7d0)
1/*
2 * An rtc driver for the Dallas DS1511
3 *
4 * Copyright (C) 2006 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
5 * Copyright (C) 2007 Andrew Sharp <andy.sharp@lsi.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 518 unchanged lines hidden (view full) ---

527 platform_set_drvdata(pdev, pdata);
528 /*
529 * if the platform has an interrupt in mind for this device,
530 * then by all means, set it
531 */
532 if (pdata->irq > 0) {
533 rtc_read(RTC_CMD1);
534 if (devm_request_irq(&pdev->dev, pdata->irq, ds1511_interrupt,
1/*
2 * An rtc driver for the Dallas DS1511
3 *
4 * Copyright (C) 2006 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
5 * Copyright (C) 2007 Andrew Sharp <andy.sharp@lsi.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 518 unchanged lines hidden (view full) ---

527 platform_set_drvdata(pdev, pdata);
528 /*
529 * if the platform has an interrupt in mind for this device,
530 * then by all means, set it
531 */
532 if (pdata->irq > 0) {
533 rtc_read(RTC_CMD1);
534 if (devm_request_irq(&pdev->dev, pdata->irq, ds1511_interrupt,
535 IRQF_DISABLED | IRQF_SHARED, pdev->name, pdev) < 0) {
535 IRQF_SHARED, pdev->name, pdev) < 0) {
536
537 dev_warn(&pdev->dev, "interrupt not available.\n");
538 pdata->irq = 0;
539 }
540 }
541
542 rtc = rtc_device_register(pdev->name, &pdev->dev, &ds1511_rtc_ops,
543 THIS_MODULE);

--- 45 unchanged lines hidden ---
536
537 dev_warn(&pdev->dev, "interrupt not available.\n");
538 pdata->irq = 0;
539 }
540 }
541
542 rtc = rtc_device_register(pdev->name, &pdev->dev, &ds1511_rtc_ops,
543 THIS_MODULE);

--- 45 unchanged lines hidden ---