From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC1E52248A8; Mon, 13 Apr 2026 16:30:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776097850; cv=none; b=Be9aJdETiph5lIjWztk3sKd26hdlAswQxmivPK04sIlBTB5VGXCJ7Cw8HPKtgEs/DOhB80rxOO3QdrZaKdYiHUU6xTyadbYuKvU5ekSlof9LHv/ERwZifeN/vVZat81R9HAC7zo8saI8M8GNLjOLkxxrdpcnHSjPMd2ux5EXUdk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776097850; c=relaxed/simple; bh=NksZoQ7mg10aAe7IsIwNFd5R0Io1qMNbjARnBwxe6To=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ugU0lLgo/2WhtP+Th/4PG48nzJVFAkXJhg7uUEjNbHugz0hXQYZ0Gpp2HWrv42Fj+Yqcdra64By3A9gOZVDGr2PP6L2CL6C/FnrWJawXuWQft9G2fVjD09B4ZS04PXZIBzVpraAV0sgYb36NtfhiZMuYuNNjat9zb6j5u1Tw8sw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=q4x2cbBX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="q4x2cbBX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 824ABC2BCAF; Mon, 13 Apr 2026 16:30:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776097849; bh=NksZoQ7mg10aAe7IsIwNFd5R0Io1qMNbjARnBwxe6To=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q4x2cbBXYGqoe6pL2/NgWntngSUtnnJcL+gJCe8wzbEScYXDJVod4G8GVw+IQNUbL +jgjILicA7aoIrNP6857UZVV+STa1vG78G2gioKSN/QofL1GN/+En7rjieiiKGl+0o SsZMwRxIlL+2c4pKAKyP1t9wtpC9glWQeUQJLesQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Geert Uytterhoeven , Danilo Krummrich , Sasha Levin Subject: [PATCH 5.15 295/570] sh: platform_early: remove pdev->driver_override check Date: Mon, 13 Apr 2026 17:57:06 +0200 Message-ID: <20260413155841.552484089@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260413155830.386096114@linuxfoundation.org> References: <20260413155830.386096114@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Danilo Krummrich [ Upstream commit c5f60e3f07b6609562d21efda878e83ce8860728 ] 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 Reviewed-by: Geert Uytterhoeven 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 Signed-off-by: Sasha Levin --- arch/sh/drivers/platform_early.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/sh/drivers/platform_early.c b/arch/sh/drivers/platform_early.c index 143747c45206f..48ddbc547bd9a 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; -- 2.51.0