Received: by 10.192.165.148 with SMTP id m20csp1834773imm; Thu, 3 May 2018 06:14:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqOVlZMxc0V0xlUe1l0efo/LIstz+VMeTnoHWZk2uTDu2LzQVU3pbH2m5krPiNGixGYbK1U X-Received: by 10.98.106.10 with SMTP id f10mr22671975pfc.99.1525353265549; Thu, 03 May 2018 06:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525353265; cv=none; d=google.com; s=arc-20160816; b=IVNuZPL1SnayvNmh8bnVjlZg9vIldH1syr+2Mv/hyAgqRouOe3HPdbGbO4X5rPsjVN AL/VoOq/zVaLe2j1zQV1P45WlKdQWMDwlBbK/6yfzBpNddQuyixqe0YmogPOKaofohi/ 0RK8nRhNLT3F8w5lLiPm95xQwgJ+K1VIGFr4r/X5Edqvmrk/H2l0EG+8L9Dv+FwhF8ik vyEkr10uW2r2WoBkKhCpJEpxJvnbimrGxIMzJmtAkjX0NvAkmLiPxrDx7EYwCGQraDoC BcvO4EpkwYL/a0fTFK0sh7UM19oLkWYsnoYdePYvSZHVq6PkrpFcVLaLT7yTCwm4JXe0 osUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=qFT36QVHPpRJGWUm35gBh3opgNx6lihlFoCCoBKd/aE=; b=rQ7WVOMPOBNXd4aN58K3b9E4zYl+AR2cw2N/euIQgzvPXjwg4DbOHMTTaFVsEiE8R5 WKoWAg0KOvJkQ4pmhYEx5HRnJCXY++Jl6IGE7hLwDLwZN+1i7lEKL5Uzs1+wvVOiDw1u YYzPCkjt1aKFQjja6UcsK0kERyetRnrcyNzFMY6lIIZshgNp8UWkDxeqDjt8mErhfWkf HsRqLvkAhKdvu/bs4HzY7i9JDp4LGkaKQKQCoXy/XOyUYg0A1C53G6i1Yd+sUhvT/Kw/ hkkyN4EakG4xx0mmuzlTp5YP9w3QNT1slKNdRQCeNh/PgK0TwMYwb04dSiXKckCreSdy kYBg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o9-v6si5343259pgn.199.2018.05.03.06.14.10; Thu, 03 May 2018 06:14:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751152AbeECNN4 (ORCPT + 99 others); Thu, 3 May 2018 09:13:56 -0400 Received: from mx1.unisoc.com ([222.66.158.135]:13463 "EHLO SHSQR01.unisoc.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751120AbeECNNz (ORCPT ); Thu, 3 May 2018 09:13:55 -0400 X-Greylist: delayed 2740 seconds by postgrey-1.27 at vger.kernel.org; Thu, 03 May 2018 09:13:47 EDT Received: from SHSQR01.spreadtrum.com (localhost [127.0.0.2] (may be forged)) by SHSQR01.unisoc.com with ESMTP id w43CRqRZ017576 for ; Thu, 3 May 2018 20:27:52 +0800 (CST) (envelope-from Chunyan.Zhang@unisoc.com) Received: from ig2.spreadtrum.com (bjmbx02.spreadtrum.com [10.0.64.8]) by SHSQR01.spreadtrum.com with ESMTP id w43CRSDc017287 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 May 2018 20:27:29 +0800 (CST) (envelope-from Chunyan.Zhang@unisoc.com) Received: from localhost (10.0.93.106) by BJMBX02.spreadtrum.com (10.0.64.8) with Microsoft SMTP Server (TLS) id 15.0.847.32; Thu, 3 May 2018 20:27:43 +0800 From: Chunyan Zhang To: Daniel Lezcano CC: , Baolin Wang , Orson Zhai , Chunyan Zhang , Chunyan Zhang Subject: [PATCH] clocksource/drivers/sprd: Fix Kconfig dependency Date: Thu, 3 May 2018 20:27:32 +0800 Message-ID: <1525350452-14433-1-git-send-email-chunyan.zhang@spreadtrum.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.0.93.106] X-ClientProxiedBy: SHCAS01.spreadtrum.com (10.0.1.201) To BJMBX02.spreadtrum.com (10.0.64.8) X-MAIL: SHSQR01.spreadtrum.com w43CRSDc017287 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SPRD arch doesn't select SPRD_TIMER, so this config would not appear even if ARCH_SPRD is set and COMPILE_TEST is not. Fix the Kconfig selection rule by letting the SPRD arch to select. This patch also sets the default value of SPRD_TIMER with ARCH_SPRD, but it still is selectable to users. Signed-off-by: Chunyan Zhang --- drivers/clocksource/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 619b120..c89e4d6 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -468,8 +468,9 @@ config MTK_TIMER Support for Mediatek timer driver. config SPRD_TIMER - bool "Spreadtrum timer driver" if COMPILE_TEST - depends on HAS_IOMEM + bool "Spreadtrum timer driver" + depends on HAS_IOMEM && (ARCH_SPRD || COMPILE_TEST) + default ARCH_SPRD select TIMER_OF help Enables support for the Spreadtrum timer driver. -- 2.7.4