Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp149195lqp; Mon, 10 Jun 2024 23:10:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxGYysAa+AD71MYsk/HZb2vIsbSA4rtY+PoxwlxeRI0yD1tQr5Ksvd445lptRSVNa+DNfeLay2McM5t0nvsae0OANP4zKiAoA+RyTJ2A== X-Google-Smtp-Source: AGHT+IFMOwYT/eFmRgl1BHaONs6vpiXk4QXqWFTfnTnNUjFxi2OIEUcY7XC0mbEHNQWPW+Alh0uP X-Received: by 2002:a05:6358:7594:b0:19f:62ad:411c with SMTP id e5c5f4694b2df-19f62ad422cmr24616455d.20.1718086242430; Mon, 10 Jun 2024 23:10:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718086242; cv=pass; d=google.com; s=arc-20160816; b=ywxMXiY1XrxgAY3Y9SAkfwSj2Pl+jgJI4+mjI0dnPcRQlBAUIK9yVXlbA8mdEIatdJ oLItQ0MCcruiK4OT5HoawmS2TUH4sDsglcgBKprt8jEXXKn9jYxNy4Z73AxpFZVxhVIt FC8N5xnwIKN5fPHLQM0a5bslLlzdNR+p1I6Yo0wkWiVmyH36d7YmcgrVdKR6XyzRuzU6 UOiSu4h6P97R+dzydRkzuTpK9We+XNz3KaX+0TyW385+Ik9QYk+Hd6wJqrHeWzLrHkpu wRfBT2vi6bzjuPtaD9uDIbOrKjWd6JmE67l5OSSze34jKWHKCTkOvwbGqvzFHAb0neaz ZFxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FtYObnNVwakYowCUn2TrHl3DGDxxEgIe5m751WPYKCk=; fh=mOPQ3DD8EqBi7eIMGv0JQrjOlxZkXPoiANuQ3Vg/qYk=; b=uSxKLt1egdiQGppZd22Y/6RXjQUBqaN39pZjt5UnPETVVE56gX8762mtyS5X03mhTQ NnRfwp8eVczG8GTYSo6CtiNqA7O4a0xjfoVmV35zB9HGY2R/3e5QKYxWpJxekGq8ZbMb hGGQfMaQuskKH6rLZtibW1uMHzwbfEJS4NY2vhIxGgeSsKSHqg9RJ7DY2ee+H5ko9paA gL2bQDCgiPJKwkwHQ9Se414fj3Y349bo/7HwMbXHLxK8Ni7ogdDVZZjaldsfNz8eiVOa IXwCunXKdksp7cJ44X8IwNmDFoQJmiDjcS7cVssk4XKJkHRcssgPdkLIQ5gkL+T2hIK1 bp0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KNhOCk7Y; 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-209305-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209305-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6ead7f3b053si4138299a12.141.2024.06.10.23.10.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 23:10:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209305-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KNhOCk7Y; 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-209305-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209305-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 07534281AB8 for ; Tue, 11 Jun 2024 06:10:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D59F171079; Tue, 11 Jun 2024 06:10:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="KNhOCk7Y" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 DBBE417108B; Tue, 11 Jun 2024 06:10:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718086224; cv=none; b=b+mqvzEdT1X5yVCMT10CCeqLqb4m+pl3WBtinnp21a5F03mMigDfpfDPAuO8QSE2bFQQpIKqdccR90sOV+9GQKQVPgKplVCHx3wdP4WxLLrrMZBDDMPav2JjIgDKxOvYNyLThNkffs34V7NifrFRPyzrDvH+jGkdSqzk/ENEp/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718086224; c=relaxed/simple; bh=EgEYhsFBJ5H7EevFGdW0eMvoHeTOydiqxx0iI8hCqlM=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Koa8eggbFzGHq/EZBLwUn6571kXBCZaT65bp9UsexW39UU9UpPWlzWWMaG0fvub1qKMdZmWCQh9qAvA5CIKiHX/74kdXTWg4rceCUgtB01W0gWXavBgWh3S/T5caRj1v/Dnp3/RWTLXpn7rZ/MUSTVHZ0bBHxnobrRwYtWP4f3w= 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=KNhOCk7Y; arc=none smtp.client-ip=198.47.23.249 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 lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45B6A0Xi121243; Tue, 11 Jun 2024 01:10:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718086200; bh=FtYObnNVwakYowCUn2TrHl3DGDxxEgIe5m751WPYKCk=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=KNhOCk7YtcetQ4y9KJAxAuLlrM74orpfPG7ki3L4JPIL0P6oT+RbrXPtCZpAlKMxz ywLkblqsB1zpXK+vHTnBOgi2/KJzAIfDFEaikhZwMvHhKOkeLUbVRiP2SnNXNyvUT5 JVDBty64X+4hMVHjPS+/bWD8Zhexp5NUJnjA2XnI= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45B6A0J9048676 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 11 Jun 2024 01:10:00 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 11 Jun 2024 01:10:00 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE100.ent.ti.com (10.64.6.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; Tue, 11 Jun 2024 01:10:00 -0500 Received: from localhost (dhruva.dhcp.ti.com [172.24.227.68]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45B69x5t051533; Tue, 11 Jun 2024 01:10:00 -0500 Date: Tue, 11 Jun 2024 11:39:59 +0530 From: Dhruva Gole To: Andrew Davis CC: Sebastian Reichel , Florian Fainelli , Broadcom internal kernel review list , , , Subject: Re: [PATCH 1/5] power: reset: brcmstb: Use normal driver register function Message-ID: <20240611060959.nvcaasoft7l2gr3w@dhruva> References: <20240610142836.168603-1-afd@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240610142836.168603-1-afd@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Hi, On Jun 10, 2024 at 09:28:32 -0500, Andrew Davis wrote: > 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); Reviewed-by: Dhruva Gole -- Best regards, Dhruva