From patchwork Tue Oct 13 13:39:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11835915 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 25650AA34 for ; Tue, 13 Oct 2020 18:11:52 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B611D2473F for ; Tue, 13 Oct 2020 13:41:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SjH6ys0X"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="C6o1y4t+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B611D2473F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=6dD5rDKpfnNHIv8zU2Q+5cMPwWap3zv+P7Va69YNny0=; b=SjH6ys0XVIKlWx+uF1f41/hMHB vnGzL4rEJ44tHrMntYDEzKyS1s5QwMITslco8XXGt1VPz4lTJISFo3bzp4tor2gt47cNF9a6pZFVh syc0iBFx6RO1Jl4jhVR10CWav5WI/SQzIxiIczaugaDra9l7NXEH8qsX9eCeN5z4xZlpK9aKyTeTW d3MWd1KlEKtnEbmyVkEbULcYyYr8zXuTup1BEguakdhv1JyjS/v8otjVXl4xMe1kocaD1NWs4+BSf qpOLmpN/t2W48DSBAAnJ9Z8b9v3ENBT5kvPYTKf+WGjEDk7xvr7+ZyL6fBXp/yvA4NiSqwsaHFMk1 5ycFtbtg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kSKWy-0007fK-BV; Tue, 13 Oct 2020 13:39:56 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kSKWs-0007c6-K8 for linux-arm-kernel@lists.infradead.org; Tue, 13 Oct 2020 13:39:52 +0000 Received: by mail-wr1-x441.google.com with SMTP id i1so17980287wro.1 for ; Tue, 13 Oct 2020 06:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jXRjLc7/VTEbu9Wec7fe96yx2W0L+RJ0lJ0eWgO4l8k=; b=C6o1y4t+MuEjWBFxxfMHkiKE9hKTunN1ZAxXs7BX+1bkNrdkVoE+4zaHPwDHmtRsPx +3QNThqorMTFNot7GJWTBjH5hVUAZlGmrHliHv4dLeMpWYjwojz+jrKWHMjymc4tDbQG txNGcm1PDd/CShcBMp5w2bA72yMKwJ3gJjQFUZrO1FHXdmiKr1GliE2gPe7ttv47iImF qivhlzeHhFNa2y+cfh5f87l2euYkJrZQGeVPmZshj7P1jLWR+7SojEzsegtVV7fyEySq 3WaooC4Ly0yJN6FNT1ZDnUO+PRyThM6IEtSSpg1vApUKDGVIVffSQgxnaNoG6aRV9krN wJGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jXRjLc7/VTEbu9Wec7fe96yx2W0L+RJ0lJ0eWgO4l8k=; b=Q7xP/HZxSvJStZdVxAi9Cz1Fr68OlQFKsRPSB3HEX1qcc1d5DMukNepk1NE1Lrl5wJ K7UwbpztzUHYN5pckHnqS75L7MLtLegon40Er+RZreTcdQ5kGXRogR+lwtS5nYss0St8 PuPWXZN1Fx6pH153DI+rbvprl4uVNki2By4lQi92ekmB5rN2N0B98ErF/rOf+UNusk2B 5xX9TPzG+BdGKU6GxOgiqGFWg8U3oGyskZcUrLJNw3MHVJNBUOppwlxEh/sA5F4+QxFZ 9PR1qo1uAUSmcyCh1y8QRDgUGtdn99eYOftx+VQEYHu+h7Ds0/mjcEpFNgjG7Pkan6Vb 08sQ== X-Gm-Message-State: AOAM532MU8VfuG6eG/l0487RnytHjOHbYCTHAa/g6uptCfI50gvVKbaP KpZXzYEJU9nPXxy28U4UwFQv9mxPkq1XEgo+ X-Google-Smtp-Source: ABdhPJzy4dVRESkN3Bx5r5311HsleVWTAcXGJiqtKKLkhwTtL3zXyGUYK0ZRUJYDJImBG2gvXk1GlA== X-Received: by 2002:adf:9793:: with SMTP id s19mr14206935wrb.139.1602596387316; Tue, 13 Oct 2020 06:39:47 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:2ec0:82b0:f4da:39ea:5653:71fc]) by smtp.gmail.com with ESMTPSA id t7sm6803949wrx.42.2020.10.13.06.39.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2020 06:39:46 -0700 (PDT) From: Neil Armstrong To: p.zabel@pengutronix.de Subject: [PATCH] reset: meson: make it possible to build as a module Date: Tue, 13 Oct 2020 15:39:43 +0200 Message-Id: <20201013133943.412119-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201013_093950_873213_73805FBA X-CRM114-Status: GOOD ( 17.34 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:441 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org In order to reduce the kernel Image size on multi-platform distributions, make it possible to build the reset controller driver as a module. This partially reverts 8290924e ("reset: meson: make it explicitly non-modular") Signed-off-by: Neil Armstrong Reviewed-by: Kevin Hilman Tested-by: Kevin Hilman --- drivers/reset/Kconfig | 4 ++-- drivers/reset/reset-meson.c | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index d9efbfd29646..ab315617565f 100644 --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig @@ -94,8 +94,8 @@ config RESET_LPC18XX This enables the reset controller driver for NXP LPC18xx/43xx SoCs. config RESET_MESON - bool "Meson Reset Driver" if COMPILE_TEST - default ARCH_MESON + tristate "Meson Reset Driver" + default ARCH_MESON || COMPILE_TEST help This enables the reset driver for Amlogic Meson SoCs. diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c index 94d7ba88d7d2..434d5c0f877e 100644 --- a/drivers/reset/reset-meson.c +++ b/drivers/reset/reset-meson.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -142,4 +143,8 @@ static struct platform_driver meson_reset_driver = { .of_match_table = meson_reset_dt_ids, }, }; -builtin_platform_driver(meson_reset_driver); +module_platform_driver(meson_reset_driver); + +MODULE_DESCRIPTION("Amlogic Meson Reset Controller driver"); +MODULE_AUTHOR("Neil Armstrong "); +MODULE_LICENSE("Dual BSD/GPL");