Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1736679
| From | Mario Limonciello <mario.limonciello@dell.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 10/12] platform/x86: wmi: destroy on cleanup rather than unregister |
| Date | 2017-09-21 16:00 +0200 |
| Message-ID | <usabh-1IE-35@gated-at.bofh.it> (permalink) |
| References | <usabf-1IE-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
device_create documentation says to cleanup using device_destroy Signed-off-by: Mario Limonciello <mario.limonciello@dell.com> --- drivers/platform/x86/wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index d1e128864d24..84314c0ef9c2 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c @@ -1223,7 +1223,7 @@ static int acpi_wmi_remove(struct platform_device *device) acpi_remove_address_space_handler(acpi_device->handle, ACPI_ADR_SPACE_EC, &acpi_wmi_ec_space_handler); wmi_free_devices(acpi_device); - device_unregister((struct device *)dev_get_drvdata(&device->dev)); + device_destroy(&wmi_bus_class, MKDEV(0, 0)); return 0; } @@ -1277,7 +1277,7 @@ static int acpi_wmi_probe(struct platform_device *device) return 0; err_remove_busdev: - device_unregister(wmi_bus_dev); + device_destroy(&wmi_bus_class, MKDEV(0, 0)); err_remove_notify_handler: acpi_remove_notify_handler(acpi_device->handle, ACPI_DEVICE_NOTIFY, -- 2.14.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/12] Introduce support for Dell SMBIOS over WMI Mario Limonciello <mario.limonciello@dell.com> - 2017-09-21 16:00 +0200
[PATCH 08/12] platform/x86: wmi: Cleanup exit routine in reverse order of init Mario Limonciello <mario.limonciello@dell.com> - 2017-09-21 16:00 +0200
[PATCH 02/12] platform/x86: dell-wmi: Don't match on descriptor GUID modalias Mario Limonciello <mario.limonciello@dell.com> - 2017-09-21 16:00 +0200
Re: [PATCH 02/12] platform/x86: dell-wmi: Don't match on descriptor GUID modalias Pali Rohár <pali.rohar@gmail.com> - 2017-09-25 18:10 +0200
[PATCH 04/12] platform/x86: dell-smbios: Switch to a WMI-ACPI interface Mario Limonciello <mario.limonciello@dell.com> - 2017-09-21 16:00 +0200
Re: [PATCH 04/12] platform/x86: dell-smbios: Switch to a WMI-ACPI interface Pali Rohár <pali.rohar@gmail.com> - 2017-09-25 18:30 +0200
RE: [PATCH 04/12] platform/x86: dell-smbios: Switch to a WMI-ACPI interface <Mario.Limonciello@dell.com> - 2017-09-25 21:30 +0200
[PATCH 12/12] platform/x86: Kconfig: Change the default settings for dell-wmi-smbios Mario Limonciello <mario.limonciello@dell.com> - 2017-09-21 16:00 +0200
[PATCH 01/12] platform/x86: dell-wmi: label driver as handling notifications Mario Limonciello <mario.limonciello@dell.com> - 2017-09-21 16:00 +0200
Re: [PATCH 01/12] platform/x86: dell-wmi: label driver as handling notifications Pali Rohár <pali.rohar@gmail.com> - 2017-09-25 18:10 +0200
RE: [PATCH 01/12] platform/x86: dell-wmi: label driver as handling notifications <Mario.Limonciello@dell.com> - 2017-09-25 22:20 +0200
[PATCH 10/12] platform/x86: wmi: destroy on cleanup rather than unregister Mario Limonciello <mario.limonciello@dell.com> - 2017-09-21 16:00 +0200
[PATCH 07/12] platform/x86: dell-wmi-smbios: Use Dell WMI descriptor check Mario Limonciello <mario.limonciello@dell.com> - 2017-09-21 16:00 +0200
Re: [PATCH 07/12] platform/x86: dell-wmi-smbios: Use Dell WMI descriptor check Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-09-21 18:50 +0200
RE: [PATCH 07/12] platform/x86: dell-wmi-smbios: Use Dell WMI descriptor check <Mario.Limonciello@dell.com> - 2017-09-21 23:00 +0200
[PATCH 09/12] platform/x86: wmi: create character devices when requested by drivers Mario Limonciello <mario.limonciello@dell.com> - 2017-09-21 16:00 +0200
Re: [PATCH 09/12] platform/x86: wmi: create character devices when requested by drivers Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-09-21 18:50 +0200
RE: [PATCH 09/12] platform/x86: wmi: create character devices when requested by drivers <Mario.Limonciello@dell.com> - 2017-09-21 21:30 +0200
[PATCH 03/12] platform/x86: dell-smbios: Add pr_fmt definition to driver Mario Limonciello <mario.limonciello@dell.com> - 2017-09-21 16:10 +0200
Re: [PATCH 03/12] platform/x86: dell-smbios: Add pr_fmt definition to driver Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-09-21 18:30 +0200
Re: [PATCH 03/12] platform/x86: dell-smbios: Add pr_fmt definition to driver Pali Rohár <pali.rohar@gmail.com> - 2017-09-25 18:10 +0200
[PATCH 05/12] platform/x86: dell-smbios: rename to dell-wmi-smbios Mario Limonciello <mario.limonciello@dell.com> - 2017-09-21 16:10 +0200
Re: [PATCH 00/12] Introduce support for Dell SMBIOS over WMI Pali Rohár <pali.rohar@gmail.com> - 2017-09-25 18:20 +0200
RE: [PATCH 00/12] Introduce support for Dell SMBIOS over WMI <Mario.Limonciello@dell.com> - 2017-09-25 18:40 +0200
Re: [PATCH 00/12] Introduce support for Dell SMBIOS over WMI Pali Rohár <pali.rohar@gmail.com> - 2017-09-25 18:50 +0200
RE: [PATCH 00/12] Introduce support for Dell SMBIOS over WMI <Mario.Limonciello@dell.com> - 2017-09-25 21:30 +0200
csiph-web