Commit 46ecf720 authored by Minghao Chi's avatar Minghao Chi Committed by Hans de Goede
Browse files

platform/x86: toshiba_acpi: use kobj_to_dev()

parent c8ad6a76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2353,7 +2353,7 @@ static struct attribute *toshiba_attributes[] = {
static umode_t toshiba_sysfs_is_visible(struct kobject *kobj,
					struct attribute *attr, int idx)
{
	struct device *dev = container_of(kobj, struct device, kobj);
	struct device *dev = kobj_to_dev(kobj);
	struct toshiba_acpi_dev *drv = dev_get_drvdata(dev);
	bool exists = true;