diff options
Diffstat (limited to 'drivers/rtc/class.c')
-rw-r--r-- | drivers/rtc/class.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index 5b58271c07..3edb294ed7 100644 --- a/drivers/rtc/class.c +++ b/drivers/rtc/class.c @@ -1,18 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * RTC barebox subsystem, base class * * Copyright (C) 2014 Antony Pavlov <antonynpavlov@gmail.com> - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * */ #include <linux/err.h> @@ -61,7 +51,7 @@ EXPORT_SYMBOL(rtc_set_time); int rtc_register(struct rtc_device *rtcdev) { - struct device_d *dev = &rtcdev->class_dev; + struct device *dev = &rtcdev->class_dev; if (!rtcdev->ops) return -EINVAL; |