Skip to content

Commit c5f60e3

Browse files
author
Danilo Krummrich
committed
sh: platform_early: remove pdev->driver_override check
In commit 507fd01 ("drivers: move the early platform device support to arch/sh") platform_match() was copied over to the sh platform_early code, accidentally including the driver_override check. This check does not make sense for platform_early, as sysfs is not even available in first place at this point in the boot process, hence remove the check. Reviewed-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Fixes: 507fd01 ("drivers: move the early platform device support to arch/sh") Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Danilo Krummrich <[email protected]>
1 parent 813bbc4 commit c5f60e3

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

arch/sh/drivers/platform_early.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ static int platform_match(struct device *dev, struct device_driver *drv)
2626
struct platform_device *pdev = to_platform_device(dev);
2727
struct platform_driver *pdrv = to_platform_driver(drv);
2828

29-
/* When driver_override is set, only bind to the matching driver */
30-
if (pdev->driver_override)
31-
return !strcmp(pdev->driver_override, drv->name);
32-
3329
/* Then try to match against the id table */
3430
if (pdrv->id_table)
3531
return platform_match_id(pdrv->id_table, pdev) != NULL;

0 commit comments

Comments
 (0)