wmi-bmof.c (0898782247ae533d1f4e47a06bc5d4870931b284) | wmi-bmof.c (2b329f5694aec86107931584413c7d2ebc6b548d) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * WMI embedded Binary MOF driver 4 * 5 * Copyright (c) 2015 Andrew Lutomirski 6 * Copyright (C) 2017 VMware, Inc. All Rights Reserved. 7 */ 8 --- 72 unchanged lines hidden (view full) --- 81 82 return 0; 83 84 err_free: 85 kfree(priv->bmofdata); 86 return ret; 87} 88 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * WMI embedded Binary MOF driver 4 * 5 * Copyright (c) 2015 Andrew Lutomirski 6 * Copyright (C) 2017 VMware, Inc. All Rights Reserved. 7 */ 8 --- 72 unchanged lines hidden (view full) --- 81 82 return 0; 83 84 err_free: 85 kfree(priv->bmofdata); 86 return ret; 87} 88 |
89static int wmi_bmof_remove(struct wmi_device *wdev) | 89static void wmi_bmof_remove(struct wmi_device *wdev) |
90{ 91 struct bmof_priv *priv = dev_get_drvdata(&wdev->dev); 92 93 sysfs_remove_bin_file(&wdev->dev.kobj, &priv->bmof_bin_attr); 94 kfree(priv->bmofdata); | 90{ 91 struct bmof_priv *priv = dev_get_drvdata(&wdev->dev); 92 93 sysfs_remove_bin_file(&wdev->dev.kobj, &priv->bmof_bin_attr); 94 kfree(priv->bmofdata); |
95 return 0; | |
96} 97 98static const struct wmi_device_id wmi_bmof_id_table[] = { 99 { .guid_string = WMI_BMOF_GUID }, 100 { }, 101}; 102 103static struct wmi_driver wmi_bmof_driver = { --- 14 unchanged lines hidden --- | 95} 96 97static const struct wmi_device_id wmi_bmof_id_table[] = { 98 { .guid_string = WMI_BMOF_GUID }, 99 { }, 100}; 101 102static struct wmi_driver wmi_bmof_driver = { --- 14 unchanged lines hidden --- |