summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2026-03-17 00:37:15 +0100
committerDanilo Krummrich <dakr@kernel.org>2026-03-17 20:30:57 +0100
commitc5f60e3f07b6609562d21efda878e83ce8860728 (patch)
tree071b29a2b6afb7beb68d1c9c258679d226571622 /arch/sh
parent813bbc4d33d2ca5b0da63e70ae13b60874f20d37 (diff)
downloadlinux-next-c5f60e3f07b6609562d21efda878e83ce8860728.tar.gz
linux-next-c5f60e3f07b6609562d21efda878e83ce8860728.zip
sh: platform_early: remove pdev->driver_override check
In commit 507fd01d5333 ("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 <gregkh@linuxfoundation.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Fixes: 507fd01d5333 ("drivers: move the early platform device support to arch/sh") Link: https://lore.kernel.org/all/DH4M3DJ4P58T.1BGVAVXN71Z09@kernel.org/ Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/drivers/platform_early.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/sh/drivers/platform_early.c b/arch/sh/drivers/platform_early.c
index 143747c45206..48ddbc547bd9 100644
--- a/arch/sh/drivers/platform_early.c
+++ b/arch/sh/drivers/platform_early.c
@@ -26,10 +26,6 @@ static int platform_match(struct device *dev, struct device_driver *drv)
struct platform_device *pdev = to_platform_device(dev);
struct platform_driver *pdrv = to_platform_driver(drv);
- /* When driver_override is set, only bind to the matching driver */
- if (pdev->driver_override)
- return !strcmp(pdev->driver_override, drv->name);
-
/* Then try to match against the id table */
if (pdrv->id_table)
return platform_match_id(pdrv->id_table, pdev) != NULL;