platform/x86: intel: punit_ipc: Drop empty platform remove function
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 13 Dec 2022 16:23:59 +0000 (17:23 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 2 Feb 2023 21:48:20 +0000 (22:48 +0100)
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>
drivers/platform/x86/intel/punit_ipc.c

index 66bb39fd0ef9022988f7e8ffbe63944acc53f939..cd0ba84cc8e4a7576b35da0d635747929483307f 100644 (file)
@@ -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,