Skip to content

Commit df9a09c

Browse files
committed
platform/x86: intel: oaktrail: Drop empty platform remove function
JIRA: https://issues.redhat.com/browse/RHEL-120895 commit c7304c5 Author: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Date: Tue Dec 13 17:23:58 2022 +0100 platform/x86: intel: oaktrail: 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-3-u.kleine-koenig@pengutronix.de Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: David Arcari <darcari@redhat.com>
1 parent a3cc927 commit df9a09c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/platform/x86/intel/oaktrail.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,17 +266,11 @@ static int oaktrail_probe(struct platform_device *pdev)
266266
return 0;
267267
}
268268

269-
static int oaktrail_remove(struct platform_device *pdev)
270-
{
271-
return 0;
272-
}
273-
274269
static struct platform_driver oaktrail_driver = {
275270
.driver = {
276271
.name = DRIVER_NAME,
277272
},
278273
.probe = oaktrail_probe,
279-
.remove = oaktrail_remove,
280274
};
281275

282276
static int dmi_check_cb(const struct dmi_system_id *id)

0 commit comments

Comments
 (0)