From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751949AbbB1Tsx (ORCPT ); Sat, 28 Feb 2015 14:48:53 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:64390 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750829AbbB1Tst (ORCPT ); Sat, 28 Feb 2015 14:48:49 -0500 From: Arnd Bergmann To: Andrew Morton Cc: Philippe De Muyter , Alessandro Zummo , rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] rtc: abx805 depends on i2c Date: Sat, 28 Feb 2015 20:48:27 +0100 Message-ID: <2307717.ct4mYzhCLm@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:gJT/iW4rKeViwd8z6awrOnpEjG9oXjnRjaO+rkWuHZo88YuzU13 MbkPvorFDtQ2ux9e31aXR0PO7QvPfSEuWjiNE4wMHwapUppNGoHvb54vJsC+cKlfDdOo0xb cj2kVD2/jbxFaOHMvVAlmhyCTaTLnTeWjDpNgOmM13PqJgkvWhkmGccdO9kM1C8ic/GhCLj SFKWQ6Bm4ikveQtD6uyRw== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The recently added X805 rtc driver uses the i2c subsystem, but has no Kconfig dependency, so it can result in a build error when i2c is disabled: drivers/rtc/rtc-abx805.c: In function 'abx805_read_multiple_regs': drivers/rtc/rtc-abx805.c:55:2: error: implicit declaration of function 'i2c_transfer' [-Werror=implicit-function-declaration] This adds the obvious dependency. Signed-off-by: Arnd Bergmann Fixes: 9033ab8ddd29 ("rtc: add rtc-abx805, a driver for the Abracon AB 1805 i2c rtc") diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 61ea2e3b4071..80ae27ffe8ea 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -1083,6 +1083,7 @@ config RTC_DRV_AB8500 config RTC_DRV_ABX805 tristate "Abracon AB X805 RTC" + depends on I2C help Select this to enable support for the Abracon AB X805 RTC. AB X805 is the i2c flavour of the AB 18X5 family of ultra-low-power