From patchwork Tue Jan 2 10:50:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 123116 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8817417qgn; Tue, 2 Jan 2018 02:51:43 -0800 (PST) X-Google-Smtp-Source: ACJfBov8mJBt2Q7u0X2ghLn3/dylR1uNY3IYrl3jy6QRIDVTxPQEnkqjLHhDirOv2skVtgMRuiVC X-Received: by 10.98.61.220 with SMTP id x89mr45228039pfj.73.1514890303857; Tue, 02 Jan 2018 02:51:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514890303; cv=none; d=google.com; s=arc-20160816; b=gABHTYNx/R0pnVIRQtw27bYzDEUrPqf/wKh6yRxGjya+m3Yg8gN4zwMN0T6rWZDvTu 8pF4icLeqP2If0G9CqIvt/IvKfXMabtY8LFPffUV1WsI42ONsFwLW4XYRMNg7V0Y9+fL PY+BYuhCiyxm2dNZXYvs50VPcmgbxwGgEXDntr1amJJExiMnX6Ca9aE7dSkGwbO981fp 9HrY0wC5M2MNOzNVPq2XjWYBjUjKP0q4aWTHUGNI3hzAW9GC65sYD7nnGdqgDFLRgiwV jS/QgcbxCOGvwPe1q0KDHXWnDJEm+6AsscjHRiGQv4QkZrsVPadQrj/6NdWuhos2lFpJ /R1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=wxVsQcZ3OXmurQehzzYnHKcZMON56k27zpkvxGAGppE=; b=lIxjvKu+ul5j3KX6djYJGhZJ8xvBO788TQ6tQ/yTXaOIjqxsvvIG5oDdeM/yJKTgqy db9ldOh/LKmopZNzC0gqryoREsz8jz9qK206gSGksjfc2ane3E1pZfscVhicPSSAP1UV Mams4BcUUgYtvo4UKphctBFbhw5zXbcy5P19mftSqMPvYQmGZSYPO1OSjTTMQB2wMWO9 I0MC77rYcwxyHKcqDsH1EteeizxkqhPZTVDleZwRiJ25gsYMqsm6155t/dcHZTd7psce FQS7oCtUk37z7f+8V6+Tst/eox1rOawPy8we4g+aOR9tRl9iKSyPcWGwlcifwQHwm7n5 jJ5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-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 b5si10047731pgs.513.2018.01.02.02.51.43; Tue, 02 Jan 2018 02:51:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-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-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752625AbeABKvn (ORCPT + 1 other); Tue, 2 Jan 2018 05:51:43 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:58604 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752266AbeABKvm (ORCPT ); Tue, 2 Jan 2018 05:51:42 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0MhU26-1eIWfM2olu-00MfKJ; Tue, 02 Jan 2018 11:50:46 +0100 From: Arnd Bergmann To: Marcel Holtmann , Johan Hedberg Cc: David Lechner , Arnd Bergmann , Sebastian Reichel , Hans de Goede , Bjorn Andersson , Tobias Regnery , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Bluetooth: hciuart: add nvmem dependency Date: Tue, 2 Jan 2018 11:50:30 +0100 Message-Id: <20180102105044.1436954-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:24U61V0iEUax86JEBwzYZufT8eG0jbmzXDFlXyBoKVX/tjN0xyc pClWMtvPa8ZdijMKwJyYzJ7sRyHtBmJ6PPO2OvqGBpCA49tDzsc9QSyMdf9nM1vTbJbOu9e 1265s18ffLfTTGOVkEF02OLSumf4t1vWxqSK/MGk2ycCFqsHnmsdgau9YNcTIYqNaodNWxN 3uVeasVod+Zshgr9jCoyQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:/L56DREmxRY=:I9UP5v51ZU1wbBfcAxR3vo hXNU4mLV7dvVr17rFcBeA9cbtBE+SuFjwGLq+BtxBefyirP/JnE9R01z9xAgBhzuqXJVfsuCQ 52jKhlQXc39A2GuH8EcNER6W6zRBLp7UM0h5ZjFtP0ylmmDNnVkNrXjUq8McKm3/a81rEUhnj 9eRm13QZv+819mmHwN3bTKWr4w61Q3CL1rtAppWS3m62dWvulWkc51c3SPM6yC0mzbspyrBtu EQFVpB0mUJa69/WiGeKTQZZiQsAxVGTqNU3Ne4o2ht+vkCdRukS+/R7FoWGeCLKU07AoVy/8w hJCF5nSUQmhvrh4183f7vaW7NtFB9MpQp60X5ZAeDjB15vJzp2Mp1OQGkJUN9V8f7IDI9SehS jlX2gwvrUPzIqyuHXvnHus7EsGpPPLfD6MiulzlmQ+Koc0UVKvxyCIwSFD1Erd3k9yoyzCF03 5iOUA4ilw4EUPFVHmNfHyHMqD6T4kbVk6ysynebYu55fnE/b5QJZW58Wyx7lCWIrkGORM1c+e DAAuWe+cjdvtrqfE8xzNOYjubzDtFOB680zjRvwXz96HDPEiNKZ6DwYaP39OkI6Wi1WA1z04h kKzeK6MUTR8kj8mZhYebTYHVSdwshA3BH0QvQo5ieQ0uJYwBRTVTB96C9sV0iU5gBn3QkXPjh bGFKSiIa5ngxVoq5Ix8awHGvE3jhWyzMOmcgmAiZtfdUUpjti+kZUkKbAXktcXoxu5YxZmhVQ an8dI79MfDR5/4FN5pc+LrgsxzzF6ZUffaxFXQ== Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org When the hci support is built-in, but mvmem is a loadable module, we get a link failure: drivers/bluetooth/hci_ll.o: In function `hci_ti_probe': hci_ll.c:(.text+0x226): undefined reference to `nvmem_cell_get' hci_ll.c:(.text+0x238): undefined reference to `nvmem_cell_read' hci_ll.c:(.text+0x244): undefined reference to `nvmem_cell_put' This adds another Kconfig dependency to enforce valid configurations. Fixes: 0e58d0cdb3eb ("Bluetooth: hci_ll: Add optional nvmem BD address source") Signed-off-by: Arnd Bergmann --- drivers/bluetooth/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig index 41932f0e68d0..d816ce9e23a7 100644 --- a/drivers/bluetooth/Kconfig +++ b/drivers/bluetooth/Kconfig @@ -77,6 +77,7 @@ config BT_HCIBTSDIO config BT_HCIUART tristate "HCI UART driver" depends on SERIAL_DEV_BUS || !SERIAL_DEV_BUS + depends on NVMEM || !NVMEM depends on TTY help Bluetooth HCI UART driver.