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 95EE03FADEE; Tue, 31 Mar 2026 16:31:43 +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=1774974703; cv=none; b=PoTp73usRpPf2woK08NP+jLP7vZGihHE1RQeRyZJkABRbEx5CDv2dnUx0EWseilAxf0a1q+bEUdf4lsjt/ipl73xU4vmdDUyIZitliQF0Mpg7fteQVhDc6CYiFmaHcXHcyFQjP4QhU3gpA7b0+3DQcm5Av7ShJkzgDv1GDakyHM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774974703; c=relaxed/simple; bh=Vxw41ksIOGuDiU5X4aM97LThqfBEvE0ob4mdNaVQDco=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Qc5FHzssfBF493vf3YbuW3wejkAz68noRt7nfAXdGW0cLEuu/RSRUbey0J2A7G8Ng8T2OJnIqic0AWxoTt5oCuHbYKBlichWvLnCN00A5unumCkcRIuuWvX5WlwWhEpGvncTSFmcbll/cw9H86UGqoAH/eo0E/OdDwhnqywgrpU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=n4epFMuW; 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="n4epFMuW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC341C19423; Tue, 31 Mar 2026 16:31:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774974703; bh=Vxw41ksIOGuDiU5X4aM97LThqfBEvE0ob4mdNaVQDco=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n4epFMuWeWU4BkP+Qj9iCAN44WEBej8HvDgaJkdDalBd3/WoQNwAlWKJHQht87mAd h17nfQhTFcJPwOFjJauzx4KEuKk7/TIlXumqDia86Elc96k+Z19PK0QhvN7IXbOAPO S3O+pQdg/odkfzHJ0JZLdQ8OkZu39Q99MXS9OAdY= 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.19 012/342] sh: platform_early: remove pdev->driver_override check Date: Tue, 31 Mar 2026 18:17:25 +0200 Message-ID: <20260331161759.361811417@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260331161758.909578033@linuxfoundation.org> References: <20260331161758.909578033@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.19-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