Commit baf1d9c1 authored by zhouchuangao's avatar zhouchuangao Committed by Greg Kroah-Hartman
Browse files

driver/base/soc: Use kobj_to_dev() API

parent 96fa72ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ static umode_t soc_attribute_mode(struct kobject *kobj,
				struct attribute *attr,
				int index)
{
	struct device *dev = container_of(kobj, struct device, kobj);
	struct device *dev = kobj_to_dev(kobj);
	struct soc_device *soc_dev = container_of(dev, struct soc_device, dev);

	if ((attr == &dev_attr_machine.attr)