rtc-ds1511.c (25ece30561d247b2931b0d11d92e9c976a668771) | rtc-ds1511.c (3a905c2d9544a418953d6c18668f0f853fbd9be9) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * An rtc driver for the Dallas DS1511 4 * 5 * Copyright (C) 2006 Atsushi Nemoto <anemo@mba.ocn.ne.jp> 6 * Copyright (C) 2007 Andrew Sharp <andy.sharp@lsi.com> 7 * 8 * Real time clock driver for the Dallas 1511 chip, which also --- 456 unchanged lines hidden (view full) --- 465 return PTR_ERR(pdata->rtc); 466 467 pdata->rtc->ops = &ds1511_rtc_ops; 468 469 ret = rtc_register_device(pdata->rtc); 470 if (ret) 471 return ret; 472 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * An rtc driver for the Dallas DS1511 4 * 5 * Copyright (C) 2006 Atsushi Nemoto <anemo@mba.ocn.ne.jp> 6 * Copyright (C) 2007 Andrew Sharp <andy.sharp@lsi.com> 7 * 8 * Real time clock driver for the Dallas 1511 chip, which also --- 456 unchanged lines hidden (view full) --- 465 return PTR_ERR(pdata->rtc); 466 467 pdata->rtc->ops = &ds1511_rtc_ops; 468 469 ret = rtc_register_device(pdata->rtc); 470 if (ret) 471 return ret; 472 |
473 rtc_nvmem_register(pdata->rtc, &ds1511_nvmem_cfg); | 473 devm_rtc_nvmem_register(pdata->rtc, &ds1511_nvmem_cfg); |
474 475 /* 476 * if the platform has an interrupt in mind for this device, 477 * then by all means, set it 478 */ 479 if (pdata->irq > 0) { 480 rtc_read(RTC_CMD1); 481 if (devm_request_irq(&pdev->dev, pdata->irq, ds1511_interrupt, --- 25 unchanged lines hidden --- | 474 475 /* 476 * if the platform has an interrupt in mind for this device, 477 * then by all means, set it 478 */ 479 if (pdata->irq > 0) { 480 rtc_read(RTC_CMD1); 481 if (devm_request_irq(&pdev->dev, pdata->irq, ds1511_interrupt, --- 25 unchanged lines hidden --- |