rtc-ds3232.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | rtc-ds3232.c (3a905c2d9544a418953d6c18668f0f853fbd9be9) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * RTC client/driver for the Maxim/Dallas DS3232/DS3234 Real-Time Clock 4 * 5 * Copyright (C) 2009-2011 Freescale Semiconductor. 6 * Author: Jack Lan <jack.lan@freescale.com> 7 * Copyright (C) 2008 MIMOMax Wireless Ltd. 8 */ --- 504 unchanged lines hidden (view full) --- 513 514 ds3232_hwmon_register(dev, name); 515 516 ds3232->rtc = devm_rtc_device_register(dev, name, &ds3232_rtc_ops, 517 THIS_MODULE); 518 if (IS_ERR(ds3232->rtc)) 519 return PTR_ERR(ds3232->rtc); 520 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * RTC client/driver for the Maxim/Dallas DS3232/DS3234 Real-Time Clock 4 * 5 * Copyright (C) 2009-2011 Freescale Semiconductor. 6 * Author: Jack Lan <jack.lan@freescale.com> 7 * Copyright (C) 2008 MIMOMax Wireless Ltd. 8 */ --- 504 unchanged lines hidden (view full) --- 513 514 ds3232_hwmon_register(dev, name); 515 516 ds3232->rtc = devm_rtc_device_register(dev, name, &ds3232_rtc_ops, 517 THIS_MODULE); 518 if (IS_ERR(ds3232->rtc)) 519 return PTR_ERR(ds3232->rtc); 520 |
521 ret = rtc_nvmem_register(ds3232->rtc, &nvmem_cfg); | 521 ret = devm_rtc_nvmem_register(ds3232->rtc, &nvmem_cfg); |
522 if(ret) 523 return ret; 524 525 if (ds3232->irq > 0) { 526 ret = devm_request_threaded_irq(dev, ds3232->irq, NULL, 527 ds3232_irq, 528 IRQF_SHARED | IRQF_ONESHOT, 529 name, dev); --- 238 unchanged lines hidden --- | 522 if(ret) 523 return ret; 524 525 if (ds3232->irq > 0) { 526 ret = devm_request_threaded_irq(dev, ds3232->irq, NULL, 527 ds3232_irq, 528 IRQF_SHARED | IRQF_ONESHOT, 529 name, dev); --- 238 unchanged lines hidden --- |