From patchwork Wed Apr 23 12:57:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Delvare X-Patchwork-Id: 4040801 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F2C879F391 for ; Wed, 23 Apr 2014 12:58:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 376272012B for ; Wed, 23 Apr 2014 12:58:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 47B9520165 for ; Wed, 23 Apr 2014 12:58:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751419AbaDWM6A (ORCPT ); Wed, 23 Apr 2014 08:58:00 -0400 Received: from cantor2.suse.de ([195.135.220.15]:33057 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752927AbaDWM54 (ORCPT ); Wed, 23 Apr 2014 08:57:56 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 8750EAC4F; Wed, 23 Apr 2014 12:57:54 +0000 (UTC) Date: Wed, 23 Apr 2014 14:57:52 +0200 From: Jean Delvare To: linux-mmc@vger.kernel.org Cc: Chris Ball , Ulf Hansson Subject: [PATCH] mmc: Add hardware dependencies for sdhci-pxav3 and sdhci-pxav2 Message-ID: <20140423145752.004e5e7d@endymion.delvare> Organization: SUSE Linux X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-suse-linux-gnu) MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I seem to understand that the sdhci-pxav3 and sdhci-pxav2 drivers are only needed on the MMP architecture. So add a hardware dependency on ARCH_MMP, so that other users don't get to build useless drivers. Signed-off-by: Jean Delvare Cc: Chris Ball Cc: Ulf Hansson --- drivers/mmc/host/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-3.15-rc2.orig/drivers/mmc/host/Kconfig 2014-04-14 09:42:30.197082285 +0200 +++ linux-3.15-rc2/drivers/mmc/host/Kconfig 2014-04-23 14:10:48.863916201 +0200 @@ -215,7 +215,7 @@ config MMC_SDHCI_SIRF config MMC_SDHCI_PXAV3 tristate "Marvell MMP2 SD Host Controller support (PXAV3)" - depends on CLKDEV_LOOKUP + depends on CLKDEV_LOOKUP && (ARCH_MMP || COMPILE_TEST) select MMC_SDHCI select MMC_SDHCI_PLTFM default CPU_MMP2 @@ -228,7 +228,7 @@ config MMC_SDHCI_PXAV3 config MMC_SDHCI_PXAV2 tristate "Marvell PXA9XX SD Host Controller support (PXAV2)" - depends on CLKDEV_LOOKUP + depends on CLKDEV_LOOKUP && (ARCH_MMP || COMPILE_TEST) select MMC_SDHCI select MMC_SDHCI_PLTFM default CPU_PXA910