From patchwork Wed Aug 24 17:57:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 9298105 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 973B560757 for ; Wed, 24 Aug 2016 17:57:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CC3F290C0 for ; Wed, 24 Aug 2016 17:57:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 81250290FB; Wed, 24 Aug 2016 17:57:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DA475290C0 for ; Wed, 24 Aug 2016 17:57:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bccQY-0005G7-2K; Wed, 24 Aug 2016 17:57:26 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bccQW-0005Fa-1M; Wed, 24 Aug 2016 17:57:24 +0000 Received: from static-50-53-43-78.bvtn.or.frontiernet.net ([50.53.43.78] helo=[192.168.1.13]) by merlin.infradead.org with esmtpsa (Exim 4.85_2 #1 (Red Hat Linux)) id 1bccQU-0008NY-5P; Wed, 24 Aug 2016 17:57:22 +0000 To: moderated for non-subscribers , Takashi Iwai Subject: [PATCH -next] sound: rockchip: fix build when SPI_MASTER is not enabled From: Randy Dunlap Message-ID: <22fcb876-1a27-0ff4-3f18-5079281c247e@infradead.org> Date: Wed, 24 Aug 2016 10:57:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, Andrew Morton , Heiko Stuebner , linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Randy Dunlap Fix multiple build errors in sound/soc/rockchip/ drivers by adding "depends on SPI_MASTER". Fixes these build errors: sound/built-in.o: In function `rt5514_spi_burst_read': (.text+0x6c26c): undefined reference to `spi_sync' sound/built-in.o: In function `rt5514_spi_burst_write': (.text+0x6c96e): undefined reference to `spi_sync' sound/built-in.o: In function `rockchip_sound_probe': rk3399_gru_sound.c:(.text+0x9f579): undefined reference to `spi_bus_type' sound/built-in.o: In function `rt5514_spi_driver_init': rt5514-spi.c:(.init.text+0x983): undefined reference to `__spi_register_driver' Signed-off-by: Randy Dunlap Cc: Heiko Stuebner Cc: linux-arm-kernel@lists.infradead.org Cc: linux-rockchip@lists.infradead.org --- sound/soc/rockchip/Kconfig | 1 + 1 file changed, 1 insertion(+) --- linux-next-20160824.orig/sound/soc/rockchip/Kconfig +++ linux-next-20160824/sound/soc/rockchip/Kconfig @@ -45,6 +45,7 @@ config SND_SOC_ROCKCHIP_RT5645 config SND_SOC_RK3399_GRU_SOUND tristate "ASoC support multiple codecs for Rockchip RK3399 GRU boards" depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP + depends on SPI_MASTER select SND_SOC_ROCKCHIP_I2S select SND_SOC_MAX98357A select SND_SOC_RT5514