Commit ae243ef0 authored by suguosong's avatar suguosong Committed by Alexandre Belloni
Browse files

rtc: sysfs: use kobj_to_dev

parent 66e4f4a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -279,7 +279,7 @@ static bool rtc_does_wakealarm(struct rtc_device *rtc)
static umode_t rtc_attr_is_visible(struct kobject *kobj,
				   struct attribute *attr, int n)
{
	struct device *dev = container_of(kobj, struct device, kobj);
	struct device *dev = kobj_to_dev(kobj);
	struct rtc_device *rtc = to_rtc_device(dev);
	umode_t mode = attr->mode;