Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp345296ybi; Fri, 7 Jun 2019 08:59:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfy9zck+6I8TLccInYct48ioeH7abhPD+G8Nq0dFy6j2B97zM98G8oiaH1T7TFhnYe+nVz X-Received: by 2002:aa7:8ac9:: with SMTP id b9mr49890812pfd.260.1559923187944; Fri, 07 Jun 2019 08:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559923187; cv=none; d=google.com; s=arc-20160816; b=i4hfISG9YY/stvDLzv/2IqpcPuKbw6zmnsSc0B7+0e30fR9dxEk6EfXNmDjzjb7OgB tKCba/Omj0NWR/f0fn2gFeGACqoiGLntMPmuJEMGcOYJRiCBUUyLUilOBJULSgtRqbqg Es5eaOU4e9UHHn5ulLY3v5bspwFWgIJTB/OQZkTKjAxUHrYFgu385S6qLcLtvpqjBTVz NTTj5eyFTmxvbNyC6xL6rMRJ+PA3tqf7USxojNFBtQ/1bhyLH5DN0bITqHYEY/NGWfvP zPS2TeyWlDujKTZpqppRRrC7O9rGTdCHy2hNODPobNYaduu8KROywAoogE4zKRHDfxNb RPkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=a8OsSC6tBUyRL7Rw6Y2ayx+S6UhMMk7UJeWp8lYsTyk=; b=eYiFs1OebDVC/JD//dGfdlFS3e2V7qXjDas+wLbwytYeQ19l73M7dhbpbYX6BbmzTR iflm3E33htUNPKZhNcxb3JY1O3IeB1+UfPIBJGZjpZSs7dsVN7WeABVIOF3kQumx/Sbk Plncyf9SJqXadzfgM1H6/RZUM/zk+yiEJPBWn1EED8/Pt5DcrKvCVNos0a/AZbnkkq5A 0KTIbe9O/WJ83JsLXVuy+I/Xy5C/pKdSVZkhrt7AO8TFhnKMB8lnmKxcZJj64Z2U796H ccVr7NsbnK2X1WAckPYeVhkYrqg6UGMtGWDPb2/0erxOTRzh6cnUtBiGzCOo3DwxiNtd QnbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=ea18d6Sq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c15si2172894pjo.3.2019.06.07.08.59.30; Fri, 07 Jun 2019 08:59:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=ea18d6Sq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732101AbfFGP4j (ORCPT + 99 others); Fri, 7 Jun 2019 11:56:39 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:60348 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731195AbfFGP4i (ORCPT ); Fri, 7 Jun 2019 11:56:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1559922996; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=a8OsSC6tBUyRL7Rw6Y2ayx+S6UhMMk7UJeWp8lYsTyk=; b=ea18d6SqUDvF322Q5XlIJkJ8SOw/fRDJaO4ca4BAygoy70Z9AchjCPZT0P+ZRJALM5etFJ DZ5qBo/8K2x+1Z9T7xoLq5gOd8fbC7NYL3+u5M1zYp671s3O1ZC2LDjFuN/R51HCeamWkb 6n/mbEtccfzeELbNbTrOrytfeP7vy0A= From: Paul Cercueil To: Mark Brown Cc: od@zcrc.me, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH] spi: spi-gpio: Make probe function __init_or_module Date: Fri, 7 Jun 2019 17:56:31 +0200 Message-Id: <20190607155631.15072-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This allows the probe function to be dropped after the kernel finished its initialization, in the case where the driver was not compiled as a module. Signed-off-by: Paul Cercueil --- drivers/spi/spi-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c index eca9d52ecf65..c242c962772d 100644 --- a/drivers/spi/spi-gpio.c +++ b/drivers/spi/spi-gpio.c @@ -358,7 +358,7 @@ static void spi_gpio_put(void *data) spi_master_put(data); } -static int spi_gpio_probe(struct platform_device *pdev) +static int __init_or_module spi_gpio_probe(struct platform_device *pdev) { int status; struct spi_master *master; -- 2.21.0.593.g511ec345e18