Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3387722ybp; Sun, 6 Oct 2019 10:49:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwef6hRgvgMXYMM8glPawgpyHLUzMtkswZu9vr6gQ8aKe1Y/W6gZeJ0a8Yl9hC20xG7+4il X-Received: by 2002:a17:906:1d03:: with SMTP id n3mr20703979ejh.287.1570384170918; Sun, 06 Oct 2019 10:49:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570384170; cv=none; d=google.com; s=arc-20160816; b=RifWMgDrNWbFyAuhiG6YsWkn4zHcg81H6eK1gje8nhZUP8WJz8FRFVzJ85dhnLGY1A 7+BHvvV3aSVx3yryi/9KF3GNp3KRoidnyPCufNYlxZBAWQprSEidVjUG4xttNrW5EY/6 bnZL7rRMqvnObFsdz5z1I7y224bNYXzhkxdiAPQus6nhfvOrAjz515NmLmHBb4+Pyqk4 ed1EUUhLK7IjmczRD50nNp13WtQcColnDpgfNxCJL3MBibPqpT68ImK9uncQp5OzKdJi WJusiuY4HM1F2Qu3KK8WP/w/zA5bb09h/LSNOJwUYEtRrzBXF2knilLTd7EhG8UIhReA q1Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dH2XuSopjCJuTV74YV1TFbCOT/CroTUFUVNQxaq9VCo=; b=ALuCFo4tb7angzCdIwyhNm6NCMG68DZIgzBCrdzjSH8QeGVFpk8X6eA58N/u29cjj8 6CfJU91fZPTYYSj8Rc+plJWqr2PPNPEek/6kjanycKOSTw56DYifrY4kwuzDTNDglW4s 3saND1hu1cSNztUBzCiGS0H7+01bUmnzf07XDBpT8gwb0uNKh1Ef7iJu87ObaXrgisY2 Zf/ML3y7BUamiOuoabYcMzufTXtepN7ow3aVQlIn2A5HfUAylG4CDMetVW3pIMA2kGFS RY0owwZ4/tcdBQ+cAI+Ko6Tjg936550eUpPXO82eEpUXDhoGnpOogMMFlmRxRPlZP2Ke 9ZVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a01aIYlt; 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 va7si5856656ejb.4.2019.10.06.10.49.07; Sun, 06 Oct 2019 10:49:30 -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; dkim=pass header.i=@kernel.org header.s=default header.b=a01aIYlt; 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 S1731738AbfJFRos (ORCPT + 99 others); Sun, 6 Oct 2019 13:44:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:45088 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731707AbfJFRop (ORCPT ); Sun, 6 Oct 2019 13:44:45 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DE4B1214D9; Sun, 6 Oct 2019 17:44:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570383884; bh=5CWtG3b29b2lb4NXYKOeC/Hsp5itJeKwBFIVJ43OSLw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a01aIYltzTeBQixhCl8dPRgRzl3BSNlNMq5fpfigImta1KhO3TTojsR0MCCAV6l8o GIsVNqNnlRNcbhwgifHT9C6SbR4KrrMgKpBnfGotMZUzTxM2j/UHzBzUnyeKnn5qT1 B/9mJEVsJbem/uQkwM5n6t/6cbZwBxbU5+35D4WM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , kbuild test robot , Matti Vaittinen , Alexandre Belloni , Sasha Levin Subject: [PATCH 5.3 089/166] rtc: bd70528: fix driver dependencies Date: Sun, 6 Oct 2019 19:20:55 +0200 Message-Id: <20191006171221.032766634@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191006171212.850660298@linuxfoundation.org> References: <20191006171212.850660298@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matti Vaittinen [ Upstream commit 41a8e19f47dfe9154c56b35842700ad38a7c33e0 ] With CONFIG_BD70528_WATCHDOG=m, a built-in rtc driver cannot call into the low-level functions that are part of the watchdog module: drivers/rtc/rtc-bd70528.o: In function `bd70528_set_time': rtc-bd70528.c:(.text+0x22c): undefined reference to `bd70528_wdt_lock' rtc-bd70528.c:(.text+0x2a8): undefined reference to `bd70528_wdt_unlock' drivers/rtc/rtc-bd70528.o: In function `bd70528_set_rtc_based_timers': rtc-bd70528.c:(.text+0x50c): undefined reference to `bd70528_wdt_set' Add a Kconfig dependency which forces RTC to be a module if watchdog is a module. If watchdog is not compiled at all the stub functions for watchdog control are used. compiling the RTC without watchdog is fine. Fixes: 32a4a4ebf768 ("rtc: bd70528: Initial support for ROHM bd70528 RTC") Suggested-by: Arnd Bergmann Reported-by: kbuild test robot Signed-off-by: Matti Vaittinen Link: https://lore.kernel.org/r/84462e01e43d39024948a3bdd24087ff87dc2255.1565591387.git.matti.vaittinen@fi.rohmeurope.com Signed-off-by: Alexandre Belloni Signed-off-by: Sasha Levin --- drivers/rtc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index e72f65b61176d..add43c3374895 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -500,6 +500,7 @@ config RTC_DRV_M41T80_WDT watchdog timer in the ST M41T60 and M41T80 RTC chips series. config RTC_DRV_BD70528 tristate "ROHM BD70528 PMIC RTC" + depends on MFD_ROHM_BD70528 && (BD70528_WATCHDOG || !BD70528_WATCHDOG) help If you say Y here you will get support for the RTC on ROHM BD70528 Power Management IC. -- 2.20.1