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 DE14E33120E; Tue, 31 Mar 2026 16:47:32 +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=1774975652; cv=none; b=Wt7zx6YK8bG+VGASFWz4erOs2eaWoK2Gvpag7hxpvjJW5RJXbk0YV5ALEEfrt5i5pfCWrsA5Jx+vVyQQ0c0rEyfUncA9S+S8yJZq/kBjR7oK1TyxEEB7yTGzhl58JEdVaocSSkBAYeszI5RTtSFcSLZ/a7Y5qHn6yWMKgbkv6iI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774975652; c=relaxed/simple; bh=4ndE8liVUyY1pVEtyF8yWNnOw+kgSN1ge6xJZRYaffk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Oifa2EHcyT/Go/NvQ2cy9rVLOULaaEJvhpsrI0sFLKejysbka5NWpDePT09jgaaya8ItF/A1UXALliCRnv7sQJjXTWUOMUzWOGoodcG/FIZhBedRHkhgwsf1odcXxHFw/8U2NJgY/J06uIjGMwmH/GU5/WXQ+InMqSAf5nTDBdw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WHDzlwLZ; 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="WHDzlwLZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49BFAC19423; Tue, 31 Mar 2026 16:47:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774975652; bh=4ndE8liVUyY1pVEtyF8yWNnOw+kgSN1ge6xJZRYaffk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WHDzlwLZvI9/F1IaGIUxQwqXqVYPLwwqADSnrX/oQ9OiLBGLPaXGR85lJUAljOpUZ 2mkze06GNMnQ7Z8HQJM2BiqqztQrGiEVGcolCyeYdVOwld4reA40O4E5mybj8S9gMY xe31GH9cpD8kWVcpur62HyZWWxU6G/DTlI0ZrRlA= 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 6.12 006/244] sh: platform_early: remove pdev->driver_override check Date: Tue, 31 Mar 2026 18:19:16 +0200 Message-ID: <20260331161741.939597693@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260331161741.651718120@linuxfoundation.org> References: <20260331161741.651718120@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-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