Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Uwe Kleine-König and committed by
Hans de Goede
c7304c56 72d42499

-6
-6
drivers/platform/x86/intel/oaktrail.c
··· 266 266 return 0; 267 267 } 268 268 269 - static int oaktrail_remove(struct platform_device *pdev) 270 - { 271 - return 0; 272 - } 273 - 274 269 static struct platform_driver oaktrail_driver = { 275 270 .driver = { 276 271 .name = DRIVER_NAME, 277 272 }, 278 273 .probe = oaktrail_probe, 279 - .remove = oaktrail_remove, 280 274 }; 281 275 282 276 static int dmi_check_cb(const struct dmi_system_id *id)