From patchwork Fri Jan 20 15:56:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 717772 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-lf0-x23f.google.com (mail-lf0-x23f.google.com [IPv6:2a00:1450:4010:c07::23f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3v4lh21VWGz9sDG for ; Sat, 21 Jan 2017 02:56:49 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="ro0zCwUW"; dkim-atps=neutral Received: by mail-lf0-x23f.google.com with SMTP id v186sf27921191lfa.0 for ; Fri, 20 Jan 2017 07:56:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=ABFsG2kUibTiU7gXB1gLb//PLoSLGlu6KlsAuCIZ1rw=; b=ro0zCwUWQbvZ/e9PN+mB9vrJF/71lOGC9L+ZFPQZcR7/EtVx1Jv7Bqnoq/GJM25WEx Ep1mCy26iR4QVuzgniTuc/bZqhydWSOc9qARsHauaLmdEqPILwYESdGzNR51tUewe3YH 9BmIkuOtgtCFyGBXVyd+u/RpyNFPO6AhMfH1HUaLv8q5mHRr8A5ul+aLFL3eB4r7/ITm M64bR2u0RrUgM646l2W5t2ZRaDOeMQ3iVqOEarNVr0DRw65Phek6oeVplgiUeB0IMkKG z4lm1g2ftW3mNDeRfK/CiEu7wu8UCxc/iYxHJhdqEad6hnjbHIDdktmHtUlCl3iXK6Ef 6m+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:in-reply-to:references:in-reply-to:references :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=ABFsG2kUibTiU7gXB1gLb//PLoSLGlu6KlsAuCIZ1rw=; b=fREB963nqwllsDYJZXXQncLJbu9mZIM+7epvLHI3ZusA22zDfnTd1rebN9kNrBr0d2 WWPzOfAkMOAGs9LUrTjXQSt9QUWsqb8fqUsK8+0G/4hnSOkaftLVgifn23nBxBy+sF6L 0ayKL5dehfdlRRcjZeeaZms7KYaqTQpaZyKqPHy382tMRlODRIA3VVuwqO2075oWYdHd QtXY13tT7GPeOu0MK9Hwy6aqv9H5hM7jv2N4FhQbBliFwYQzja/9MV3UcrTQz7ujeRAT ReBUXRlQt/pAYDsCjBPbNNGpWRpB4h4jB4sNgy2WZ5HXtMg4jN0QoaSH8RWuLKr2t2ZQ PpQA== Sender: rtc-linux@googlegroups.com X-Gm-Message-State: AIkVDXILXhOu7Z6xnR+LiaKq0ljgEu4EkQOPEju7GLxYkqDjzAtLMJQNpUa1Fvps2x0vFA== X-Received: by 10.28.168.151 with SMTP id r145mr20682wme.4.1484927806927; Fri, 20 Jan 2017 07:56:46 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.28.8.133 with SMTP id 127ls232442wmi.1.gmail; Fri, 20 Jan 2017 07:56:46 -0800 (PST) X-Received: by 10.223.144.81 with SMTP id h75mr6793wrh.1.1484927806588; Fri, 20 Jan 2017 07:56:46 -0800 (PST) Received: from mail.free-electrons.com (mail.free-electrons.com. [62.4.15.54]) by gmr-mx.google.com with ESMTP id h62si130567wme.2.2017.01.20.07.56.46 for ; Fri, 20 Jan 2017 07:56:46 -0800 (PST) Received-SPF: pass (google.com: domain of maxime.ripard@free-electrons.com designates 62.4.15.54 as permitted sender) client-ip=62.4.15.54; Received: by mail.free-electrons.com (Postfix, from userid 110) id 507E020B7D; Fri, 20 Jan 2017 16:56:50 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 2CA1720B7D; Fri, 20 Jan 2017 16:56:50 +0100 (CET) From: Maxime Ripard To: Alexandre Belloni , Alessandro Zummo , Chen-Yu Tsai Cc: linux-arm-kernel@lists.infradead.org, rtc-linux@googlegroups.com, Rob Herring , devicetree@vger.kernel.org, Maxime Ripard Subject: [rtc-linux] [PATCH 3/6] rtc: sun6i: Disable the build as a module Date: Fri, 20 Jan 2017 16:56:40 +0100 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: X-Original-Sender: maxime.ripard@free-electrons.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of maxime.ripard@free-electrons.com designates 62.4.15.54 as permitted sender) smtp.mailfrom=maxime.ripard@free-electrons.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: rtc-linux@googlegroups.com X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Since we have to provide the clock very early on, the RTC driver cannot be built as a module. Make sure that won't happen. Signed-off-by: Maxime Ripard --- drivers/rtc/Kconfig | 2 +- drivers/rtc/rtc-sun6i.c | 17 +---------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index c93c5a8fba32..53e35c138ff3 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -1434,7 +1434,7 @@ config RTC_DRV_SUN4V based RTC on SUN4V systems. config RTC_DRV_SUN6I - tristate "Allwinner A31 RTC" + bool "Allwinner A31 RTC" default MACH_SUN6I || MACH_SUN8I || COMPILE_TEST depends on ARCH_SUNXI help diff --git a/drivers/rtc/rtc-sun6i.c b/drivers/rtc/rtc-sun6i.c index 872d18609183..edd5627da10f 100644 --- a/drivers/rtc/rtc-sun6i.c +++ b/drivers/rtc/rtc-sun6i.c @@ -554,15 +554,6 @@ static int sun6i_rtc_probe(struct platform_device *pdev) return 0; } -static int sun6i_rtc_remove(struct platform_device *pdev) -{ - struct sun6i_rtc_dev *chip = platform_get_drvdata(pdev); - - rtc_device_unregister(chip->rtc); - - return 0; -} - static const struct of_device_id sun6i_rtc_dt_ids[] = { { .compatible = "allwinner,sun6i-a31-rtc" }, { /* sentinel */ }, @@ -571,15 +562,9 @@ MODULE_DEVICE_TABLE(of, sun6i_rtc_dt_ids); static struct platform_driver sun6i_rtc_driver = { .probe = sun6i_rtc_probe, - .remove = sun6i_rtc_remove, .driver = { .name = "sun6i-rtc", .of_match_table = sun6i_rtc_dt_ids, }, }; - -module_platform_driver(sun6i_rtc_driver); - -MODULE_DESCRIPTION("sun6i RTC driver"); -MODULE_AUTHOR("Chen-Yu Tsai "); -MODULE_LICENSE("GPL"); +builtin_platform_driver(sun6i_rtc_driver);