From patchwork Mon Nov 19 11:59:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takashi Iwai X-Patchwork-Id: 10688569 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E262C14BD for ; Mon, 19 Nov 2018 11:59:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE7E729831 for ; Mon, 19 Nov 2018 11:59:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE95629847; Mon, 19 Nov 2018 11:59:18 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8125D29831 for ; Mon, 19 Nov 2018 11:59:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728590AbeKSWWl (ORCPT ); Mon, 19 Nov 2018 17:22:41 -0500 Received: from mx2.suse.de ([195.135.220.15]:56570 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728554AbeKSWWl (ORCPT ); Mon, 19 Nov 2018 17:22:41 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 36F2AAF63; Mon, 19 Nov 2018 11:59:15 +0000 (UTC) From: Takashi Iwai To: Yoshinori Sato Cc: Geert Uytterhoeven , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] sh: Always enable CONFIG_GENERIC_PCI_IOMAP Date: Mon, 19 Nov 2018 12:59:10 +0100 Message-Id: <20181119115910.19390-1-tiwai@suse.de> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP CONFIG_GENERIC_PCI_IOMAP is supposed to be set no matter whether CONFIG_PCI is present or not. Otherwise the generic header (asm-generic/pci_iomap.h) won't create dummy functions, and the code using pci_iomap() and pci_iounmap() will fail due to the lack of the function definitions / declarations. Cc: Geert Uytterhoeven Signed-off-by: Takashi Iwai --- arch/sh/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index f82a4da7adf3..3d5220ad9e46 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -36,6 +36,8 @@ config SUPERH select RTC_LIB select GENERIC_ATOMIC64 select GENERIC_IRQ_SHOW + select GENERIC_PCI_IOMAP + select NO_GENERIC_PCI_IOPORT_MAP select GENERIC_SMP_IDLE_THREAD select GENERIC_IDLE_POLL_SETUP select GENERIC_CLOCKEVENTS @@ -859,8 +861,6 @@ config PCI bool "PCI support" depends on SYS_SUPPORTS_PCI select PCI_DOMAINS - select GENERIC_PCI_IOMAP - select NO_GENERIC_PCI_IOPORT_MAP help Find out whether you have a PCI motherboard. PCI is the name of a bus system, i.e. the way the CPU talks to the other stuff inside