mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
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>
This commit is contained in:
committed by
Hans de Goede
parent
72d42499fb
commit
c7304c563d
@@ -266,17 +266,11 @@ static int oaktrail_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int oaktrail_remove(struct platform_device *pdev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver oaktrail_driver = {
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
},
|
||||
.probe = oaktrail_probe,
|
||||
.remove = oaktrail_remove,
|
||||
};
|
||||
|
||||
static int dmi_check_cb(const struct dmi_system_id *id)
|
||||
|
||||
Reference in New Issue
Block a user