Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp398529lqp; Mon, 10 Jun 2024 07:29:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/M45VsYYx2j2lx2m2SNWdKPyUa+lDWZp5QTfTw/ftMqDYmIa3ID7gx3NP5n9tvyf6lumscBGRglk+8MnvZFlFvd+y+XOwtc7ENlw+5g== X-Google-Smtp-Source: AGHT+IHBZd4UR63sAxM1WYazR3utazRngqw1/PGuyK74tsHG0Kw6BrLUYtnI+FvLPWmlndQQG3VZ X-Received: by 2002:a50:cc96:0:b0:57a:2eab:1bd3 with SMTP id 4fb4d7f45d1cf-57c50884301mr5159453a12.9.1718029743353; Mon, 10 Jun 2024 07:29:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718029743; cv=pass; d=google.com; s=arc-20160816; b=fmsBulWd6+VzmI+VKmzLxF9yuVfHQ065zG2oyaot0zyDVOkhzOanyu8YDmvC8KZ1eB 43D+hk+Clij5Mm2vm6R6qtMApookKKGm39PKJ81MBFPmq/K7n2V1GZKdAu2j2XQTT0lC x5NgyMlDyjS0fc/+XrtBlDYpbaJuN40wJC+yymO9aox4fP+9MtcNNojSMZJqajMcws2F nqDY0kUfCUcLBKqVoKWPpKYruveeu3kSF9twzRAWwRtHbm1OuJLSIaIqgXbB9ea9TMQT 2wwf12mK+D0FQ0wtD3oTh4pUs4yfSIxkTBe584aXISgMbb7hSaiR6Up1xANX5J8XQU89 Clgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=33XS1jVgoWUHzWe+ClzEaiI5z3azMfp+cKYexpVd4jY=; fh=E2v9/ZIEkEeLXZZe3+wm6i4LFWekl80u6DgYH+I94IU=; b=DBVh4JKWcVexKH4VwhpjXUO8OkpvP6RjgLrzywXfsYcYQhtzKLBK8O7S3nTRn0I2/o rxfO8OTbVpZmhMdjhEhsm70M+sicZ3ZlA2uTtJg2eBGMVdXs1uoOBCzN3B1YT7e4TPJO LgrQzJFcoLfY9gpZvhFCyC4z2rufQ+lNsupZXsbaSGBKa3DP4up0qLPTW8PVRTATEJD4 ohjbIW/v5DcNQL0pS3syFUOMADBIj7bCnzZWgpCUJp/1XOZVNhC84976YS+3aY8aMOT3 zFjwoklZnHwMK/BfPa734pwJnA26ik35FPGYwdP6Yu3DhEP7vJG7C/x2DWal3FkldtsU Y6lA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pUiKRdSl; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-208361-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208361-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae262a42si4929977a12.550.2024.06.10.07.29.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 07:29:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208361-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pUiKRdSl; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-208361-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208361-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 18E3B1F2309D for ; Mon, 10 Jun 2024 14:29:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B042A12FF86; Mon, 10 Jun 2024 14:28:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="pUiKRdSl" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 57D9484A4A; Mon, 10 Jun 2024 14:28:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718029728; cv=none; b=JtmwYBs0WuMdL3P71mz75/XvO4aClqzttPXEDeQohXPgH0ysaZGxPAARwdgvxsKdObRumaiOO9ADmKtW6NgPAihaWIl5Eb4LUDf9DAegN+Edd4VbbREhr4PjOegJYkJoN8n7S7EUvw7WOP0fVZLEBskrO4oTY5Wm7g9c+hPhJR4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718029728; c=relaxed/simple; bh=5bQM7hHF7PLhbjD/krJghRpcI2zapDtOoV2uqLTS5Ok=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=SreG/TKGxd0U5HrFO+GFqrYQ8DNjgWr73YmLOiqwqMVH1GBco6H7o7KSfHs0Ms2+NPFSI8Dgqg2ZW5YQ3VxRnVDfGR6fuNSt4cNRZaDLCJYXHWOFeEU+Vsge8L68cA4l5+NfW7XVZaWVG/TxlszBr4tatixBmAkXbuhWqfVxjMU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=pUiKRdSl; arc=none smtp.client-ip=198.47.19.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45AEScRf077485; Mon, 10 Jun 2024 09:28:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718029718; bh=33XS1jVgoWUHzWe+ClzEaiI5z3azMfp+cKYexpVd4jY=; h=From:To:CC:Subject:Date; b=pUiKRdSlFlaLFa/tdEdfU1bvVquPh73nHmiI1NTD4Yqce8JFaktOWNN/UUjMEkch1 viYM0wgYwP3KoCBNCzF414CUib5HaUkEqpU2K08qafiq5N43hlh+hrXRRI0UgSVnll OlXHTN9qXvYncngWnf8KkrUPCkP4jdkrHH0VUyE0= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45AEScRp123863 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2024 09:28:38 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 10 Jun 2024 09:28:38 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 10 Jun 2024 09:28:38 -0500 Received: from fllvsmtp8.itg.ti.com ([10.249.42.149]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45AESbiI095574; Mon, 10 Jun 2024 09:28:37 -0500 From: Andrew Davis To: Sebastian Reichel , Florian Fainelli CC: Broadcom internal kernel review list , , , , Andrew Davis Subject: [PATCH 1/5] power: reset: brcmstb: Use normal driver register function Date: Mon, 10 Jun 2024 09:28:32 -0500 Message-ID: <20240610142836.168603-1-afd@ti.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 The platform_driver_probe() helper is useful when the probe function is in the _init section, that is not the case here. Use the normal platform_driver_register() function. Signed-off-by: Andrew Davis --- drivers/power/reset/brcmstb-reboot.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/power/reset/brcmstb-reboot.c b/drivers/power/reset/brcmstb-reboot.c index 0f2944dc93551..797f0079bb590 100644 --- a/drivers/power/reset/brcmstb-reboot.c +++ b/drivers/power/reset/brcmstb-reboot.c @@ -140,7 +140,6 @@ static struct platform_driver brcmstb_reboot_driver = { static int __init brcmstb_reboot_init(void) { - return platform_driver_probe(&brcmstb_reboot_driver, - brcmstb_reboot_probe); + return platform_driver_register(&brcmstb_reboot_driver); } subsys_initcall(brcmstb_reboot_init); -- 2.39.2