rtc-stk17ta8.c (25ece30561d247b2931b0d11d92e9c976a668771) rtc-stk17ta8.c (3a905c2d9544a418953d6c18668f0f853fbd9be9)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * A RTC driver for the Simtek STK17TA8
4 *
5 * By Thomas Hommel <thomas.hommel@ge.com>
6 *
7 * Based on the DS1553 driver from
8 * Atsushi Nemoto <anemo@mba.ocn.ne.jp>

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

308
309 pdata->rtc = devm_rtc_allocate_device(&pdev->dev);
310 if (IS_ERR(pdata->rtc))
311 return PTR_ERR(pdata->rtc);
312
313 pdata->rtc->ops = &stk17ta8_rtc_ops;
314
315 nvmem_cfg.priv = pdata;
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * A RTC driver for the Simtek STK17TA8
4 *
5 * By Thomas Hommel <thomas.hommel@ge.com>
6 *
7 * Based on the DS1553 driver from
8 * Atsushi Nemoto <anemo@mba.ocn.ne.jp>

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

308
309 pdata->rtc = devm_rtc_allocate_device(&pdev->dev);
310 if (IS_ERR(pdata->rtc))
311 return PTR_ERR(pdata->rtc);
312
313 pdata->rtc->ops = &stk17ta8_rtc_ops;
314
315 nvmem_cfg.priv = pdata;
316 ret = rtc_nvmem_register(pdata->rtc, &nvmem_cfg);
316 ret = devm_rtc_nvmem_register(pdata->rtc, &nvmem_cfg);
317 if (ret)
318 return ret;
319
320 return rtc_register_device(pdata->rtc);
321}
322
323/* work with hotplug and coldplug */
324MODULE_ALIAS("platform:stk17ta8");

--- 13 unchanged lines hidden ---
317 if (ret)
318 return ret;
319
320 return rtc_register_device(pdata->rtc);
321}
322
323/* work with hotplug and coldplug */
324MODULE_ALIAS("platform:stk17ta8");

--- 13 unchanged lines hidden ---