From patchwork Mon Apr 16 19:50:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Randy.Dunlap" X-Patchwork-Id: 152947 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3C029B7011 for ; Tue, 17 Apr 2012 02:52:02 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SJp8R-0006wD-IP; Mon, 16 Apr 2012 16:50:39 +0000 Received: from oproxy9.bluehost.com ([2605:dc00:100:2::a2]) by merlin.infradead.org with smtp (Exim 4.76 #1 (Red Hat Linux)) id 1SJp8O-0006vL-7R for linux-mtd@lists.infradead.org; Mon, 16 Apr 2012 16:50:37 +0000 Received: (qmail 2164 invoked by uid 0); 16 Apr 2012 16:50:32 -0000 Received: from unknown (HELO box742.bluehost.com) (66.147.244.242) by oproxy9.bluehost.com with SMTP; 16 Apr 2012 16:50:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenotime.net; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=uyQTXmBLYraPlsr1d0H/1l00E0vW59BgVZc+V6KhQms=; b=nXg7ym1WKN8m5N1B2VtZQxnEzmyoP/CGz4Ei4YbsdVMSaVUDfsk3Is7twag1n3evVBrVye2KlkruBl52F3AWE9Wi7MSz/RZXfQQ8XewpgZ+JiOURVCT4jBqL00hFBLX0; Received: from static-50-53-38-135.bvtn.or.frontiernet.net ([50.53.38.135] helo=[192.168.1.4]) by box742.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SJp8K-00059h-2w; Mon, 16 Apr 2012 10:50:32 -0600 Message-ID: <4F8C780D.9010702@xenotime.net> Date: Mon, 16 Apr 2012 12:50:37 -0700 From: Randy Dunlap User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110323 Thunderbird/3.1.9 MIME-Version: 1.0 To: Stephen Rothwell Subject: [PATCH -next] mtd: fix sbc2_flash build when PCI is not enabled References: <20120416161121.261ba4e7e38989173accfb16@canb.auug.org.au> In-Reply-To: <20120416161121.261ba4e7e38989173accfb16@canb.auug.org.au> X-Identified-User: {1807:box742.bluehost.com:xenotime:xenotime.net} {sentby:smtp auth 50.53.38.135 authed with rdunlap@xenotime.net} X-Spam-Note: CRM114 invocation failed X-Spam-Score: 1.0 (+) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 3.0 DATE_IN_FUTURE_03_06 Date: is 3 to 6 hours after Received: date -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Tim Hockin , LKML , linux-next@vger.kernel.org, linux-mtd@lists.infradead.org, Andrew Morton , David Woodhouse X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Randy Dunlap sbc2_flash.c is a PCI driver, but its build fails when CONFIG_PCI is not enabled, so make it depend on PCI. drivers/mtd/maps/scb2_flash.c:237:1: warning: data definition has no type or storage class drivers/mtd/maps/scb2_flash.c:237:1: warning: type defaults to 'int' in declaration of 'module_pci_driver' drivers/mtd/maps/scb2_flash.c:237:1: warning: parameter names (without types) in function declaration Signed-off-by: Randy Dunlap Cc: David Woodhouse Cc: linux-mtd@lists.infradead.org --- drivers/mtd/maps/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20120416.orig/drivers/mtd/maps/Kconfig +++ linux-next-20120416/drivers/mtd/maps/Kconfig @@ -224,7 +224,7 @@ config MTD_CK804XROM config MTD_SCB2_FLASH tristate "BIOS flash chip on Intel SCB2 boards" - depends on X86 && MTD_JEDECPROBE + depends on X86 && MTD_JEDECPROBE && PCI help Support for treating the BIOS flash chip on Intel SCB2 boards as an MTD device - with this you can reprogram your BIOS.