rtc-ds1553.c (25ece30561d247b2931b0d11d92e9c976a668771) rtc-ds1553.c (3a905c2d9544a418953d6c18668f0f853fbd9be9)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * An rtc driver for the Dallas DS1553
4 *
5 * Copyright (C) 2006 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
6 */
7
8#include <linux/bcd.h>

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

304 if (devm_request_irq(&pdev->dev, pdata->irq,
305 ds1553_rtc_interrupt,
306 0, pdev->name, pdev) < 0) {
307 dev_warn(&pdev->dev, "interrupt not available.\n");
308 pdata->irq = 0;
309 }
310 }
311
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * An rtc driver for the Dallas DS1553
4 *
5 * Copyright (C) 2006 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
6 */
7
8#include <linux/bcd.h>

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

304 if (devm_request_irq(&pdev->dev, pdata->irq,
305 ds1553_rtc_interrupt,
306 0, pdev->name, pdev) < 0) {
307 dev_warn(&pdev->dev, "interrupt not available.\n");
308 pdata->irq = 0;
309 }
310 }
311
312 if (rtc_nvmem_register(pdata->rtc, &nvmem_cfg))
312 if (devm_rtc_nvmem_register(pdata->rtc, &nvmem_cfg))
313 dev_err(&pdev->dev, "unable to register nvmem\n");
314
315 return 0;
316}
317
318/* work with hotplug and coldplug */
319MODULE_ALIAS("platform:rtc-ds1553");
320

--- 12 unchanged lines hidden ---
313 dev_err(&pdev->dev, "unable to register nvmem\n");
314
315 return 0;
316}
317
318/* work with hotplug and coldplug */
319MODULE_ALIAS("platform:rtc-ds1553");
320

--- 12 unchanged lines hidden ---