diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-12-13 17:23:59 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-02-02 22:48:20 +0100 |
commit | 070b3098ddefdadcc6310878cf50ef09b380db1d (patch) | |
tree | 9c6d62d4ad0ff23a689650252a1046204d934d48 /drivers/platform/x86 | |
parent | c7304c563de8f094dca7c4d7fc84133d3db3e6a4 (diff) | |
download | lwn-070b3098ddefdadcc6310878cf50ef09b380db1d.tar.gz lwn-070b3098ddefdadcc6310878cf50ef09b380db1d.zip |
platform/x86: intel: punit_ipc: Drop empty platform remove function
A remove callback just returning 0 is equivalent to no remove callback
at all. So drop the useless function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221213162359.651529-4-u.kleine-koenig@pengutronix.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r-- | drivers/platform/x86/intel/punit_ipc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/platform/x86/intel/punit_ipc.c b/drivers/platform/x86/intel/punit_ipc.c index 66bb39fd0ef9..cd0ba84cc8e4 100644 --- a/drivers/platform/x86/intel/punit_ipc.c +++ b/drivers/platform/x86/intel/punit_ipc.c @@ -302,11 +302,6 @@ static int intel_punit_ipc_probe(struct platform_device *pdev) return 0; } -static int intel_punit_ipc_remove(struct platform_device *pdev) -{ - return 0; -} - static const struct acpi_device_id punit_ipc_acpi_ids[] = { { "INT34D4", 0 }, { } @@ -315,7 +310,6 @@ MODULE_DEVICE_TABLE(acpi, punit_ipc_acpi_ids); static struct platform_driver intel_punit_ipc_driver = { .probe = intel_punit_ipc_probe, - .remove = intel_punit_ipc_remove, .driver = { .name = "intel_punit_ipc", .acpi_match_table = punit_ipc_acpi_ids, |