From patchwork Wed Oct 13 21:22:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William McVicker X-Patchwork-Id: 12557315 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92835C433EF for ; Wed, 13 Oct 2021 21:23:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 79BFC61139 for ; Wed, 13 Oct 2021 21:23:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230105AbhJMVZU (ORCPT ); Wed, 13 Oct 2021 17:25:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbhJMVZT (ORCPT ); Wed, 13 Oct 2021 17:25:19 -0400 Received: from mail-pj1-x104a.google.com (mail-pj1-x104a.google.com [IPv6:2607:f8b0:4864:20::104a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 490DFC061746 for ; Wed, 13 Oct 2021 14:23:16 -0700 (PDT) Received: by mail-pj1-x104a.google.com with SMTP id z23-20020a17090ab11700b001a070e36178so2282927pjq.3 for ; Wed, 13 Oct 2021 14:23:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=CULyeJTJVJ+bhqH61eKq0VGTitHRm0H9eFT6VyJWHZQ=; b=V5vj278IDz5u9J9eQEvIguDgzLJgZpkiwD69OCg3m6SaZ8BuOuDWgh8If+2lIZqRl1 WkZQ7eNtIbJ4HeiM+avql/plX75XCAHt+wnbbxVNCmV3wk/sFORX9xW3aSWlJDSfAAsi UOAsxwd1+uykwN0JUDKQChx0daPE5TTj4zrGWBh5cNI22m7ApH/9BPXJ+PR3sQZ6BQGr mgtBMAms75b05FwjBu+W20kViohDWe0vhxmACCg1w6wvLtUT1qLzXffVhIMBGNN5Pu37 gyGs2uHa7V6pIGfVzs0yY2ry79zAgbUbX47RFwWRDF435XN97QsQoCfWfYdF1jZzGXwh ZlzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=CULyeJTJVJ+bhqH61eKq0VGTitHRm0H9eFT6VyJWHZQ=; b=a0Gi5lnFRMBRDrjnw+Om56ivktwX9FPL/E2mLZwMQ1JPX7PYlnp1HAuJxIQQNRapGz grl85cY1ZFTQrNLcX6+t/beA95XThA0ZmCfHE6Z8UViWa7KRRmXuEmwp8saMGb5r86Sv 9lVQpLr27Y3aVf6cGq8jwNfrzqZypgeiX3Wcdwwrzqn3ENF8tvii1/S5/bS4LXW/kVka dQ2GajX8wvCIgP79AzEq68+j1z0pz35RlovtNh48M3TQCsuhV/4vPPuMFUQvOOvavsK8 sqrJ0jumvYfLA82m6EUCrygTrnYaDxHzSfCRIRAcBjSSs6UOdcB2yw3u2aoXGvClFkD4 eNpg== X-Gm-Message-State: AOAM532kawYJxG2yUrPZGPtN6vLqsSZIXqy9rCrDSCgQYIYas798UIWc 3ejtVO/dAU3DLCp5NBnBUpSq5XffRs2mNb5Zk2g= X-Google-Smtp-Source: ABdhPJxdZff9YhBwBPiborfQVMP8q1qVYvtCKwp62VbGVaHdZxg/co9HSsItSqABdO5PioENCq6uzHX8tKQ8qB1FXQc= X-Received: from willmcvicker.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:2dd0]) (user=willmcvicker job=sendgmr) by 2002:a63:6c89:: with SMTP id h131mr1227261pgc.47.1634160195777; Wed, 13 Oct 2021 14:23:15 -0700 (PDT) Date: Wed, 13 Oct 2021 21:22:55 +0000 Message-Id: <20211013212256.3425889-1-willmcvicker@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog Subject: [PATCH v3] rtc: s3c: remove HAVE_S3C_RTC in favor of direct dependencies From: Will McVicker To: Russell King , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Alessandro Zummo , Alexandre Belloni Cc: kernel-team@android.com, Will McVicker , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-rtc@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The config HAVE_S3C_RTC is not really needed since we can simply just add the dependencies directly to RTC_DRV_S3C. Also, one less config to keep track of! Signed-off-by: Will McVicker Acked-by: Alexandre Belloni --- arch/arm/Kconfig | 1 - arch/arm/mach-exynos/Kconfig | 1 - arch/arm/mach-s5pv210/Kconfig | 1 - arch/arm64/Kconfig.platforms | 1 - drivers/rtc/Kconfig | 10 ++-------- 5 files changed, 2 insertions(+), 12 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 59baf6c132a7..29b745c05d37 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -475,7 +475,6 @@ config ARCH_S3C24XX select GPIOLIB select GENERIC_IRQ_MULTI_HANDLER select HAVE_S3C2410_I2C if I2C - select HAVE_S3C_RTC if RTC_CLASS select NEED_MACH_IO_H select S3C2410_WATCHDOG select SAMSUNG_ATAGS diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index 30f930e20599..dd1ae5571f43 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig @@ -21,7 +21,6 @@ menuconfig ARCH_EXYNOS select HAVE_ARM_ARCH_TIMER if ARCH_EXYNOS5 select HAVE_ARM_SCU if SMP select HAVE_S3C2410_I2C if I2C - select HAVE_S3C_RTC if RTC_CLASS select PINCTRL select PINCTRL_EXYNOS select PM_GENERIC_DOMAINS if PM diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig index d644b45bc29d..5a96099af991 100644 --- a/arch/arm/mach-s5pv210/Kconfig +++ b/arch/arm/mach-s5pv210/Kconfig @@ -13,7 +13,6 @@ config ARCH_S5PV210 select COMMON_CLK_SAMSUNG select GPIOLIB select HAVE_S3C2410_I2C if I2C - select HAVE_S3C_RTC if RTC_CLASS select PINCTRL select PINCTRL_EXYNOS select SOC_SAMSUNG diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 90c5cf4856e1..d5f0f4cdf093 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -94,7 +94,6 @@ config ARCH_EXYNOS select COMMON_CLK_SAMSUNG select EXYNOS_PM_DOMAINS if PM_GENERIC_DOMAINS select EXYNOS_PMU - select HAVE_S3C_RTC if RTC_CLASS select PINCTRL select PINCTRL_EXYNOS select PM_GENERIC_DOMAINS if PM diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index e1bc5214494e..7208eeb8459a 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -1404,16 +1404,10 @@ config RTC_DRV_OMAP This driver can also be built as a module, if so, module will be called rtc-omap. -config HAVE_S3C_RTC - bool - help - This will include RTC support for Samsung SoCs. If - you want to include RTC support for any machine, kindly - select this in the respective mach-XXXX/Kconfig file. - config RTC_DRV_S3C tristate "Samsung S3C series SoC RTC" - depends on ARCH_S3C64XX || HAVE_S3C_RTC || COMPILE_TEST + depends on ARCH_EXYNOS || ARCH_S3C64XX || ARCH_S3C24XX || ARCH_S5PV210 || \ + COMPILE_TEST help RTC (Realtime Clock) driver for the clock inbuilt into the Samsung S3C24XX series of SoCs. This can provide periodic