diff options
| -rw-r--r-- | drivers/platform/x86/asus-wmi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index 508e6ad47793..269ed7e94013 100644 --- a/drivers/platform/x86/asus-wmi.c +++ b/drivers/platform/x86/asus-wmi.c | |||
| @@ -1402,8 +1402,7 @@ static umode_t asus_hwmon_sysfs_is_visible(struct kobject *kobj, | |||
| 1402 | struct attribute *attr, int idx) | 1402 | struct attribute *attr, int idx) |
| 1403 | { | 1403 | { |
| 1404 | struct device *dev = container_of(kobj, struct device, kobj); | 1404 | struct device *dev = container_of(kobj, struct device, kobj); |
| 1405 | struct platform_device *pdev = to_platform_device(dev->parent); | 1405 | struct asus_wmi *asus = dev_get_drvdata(dev->parent); |
| 1406 | struct asus_wmi *asus = platform_get_drvdata(pdev); | ||
| 1407 | int dev_id = -1; | 1406 | int dev_id = -1; |
| 1408 | int fan_attr = -1; | 1407 | int fan_attr = -1; |
| 1409 | u32 value = ASUS_WMI_UNSUPPORTED_METHOD; | 1408 | u32 value = ASUS_WMI_UNSUPPORTED_METHOD; |
