From patchwork Wed Jul 15 10:11:30 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 29805 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id AE2FCB70B0 for ; Wed, 15 Jul 2009 20:12:51 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1MR1Sj-0007gO-CB; Wed, 15 Jul 2009 10:11:45 +0000 Received: from ey-out-1920.google.com ([74.125.78.144]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1MR1Sa-0007Ty-3Z for linux-mtd@lists.infradead.org; Wed, 15 Jul 2009 10:11:42 +0000 Received: by ey-out-1920.google.com with SMTP id 5so828808eyb.24 for ; Wed, 15 Jul 2009 03:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:date:subject :mime-version:x-uid:x-length:to:cc:content-type :content-transfer-encoding:content-disposition:message-id; bh=HchOvab3lAcUiQLV0ObyOtEnSurfb1PuYIehlHBEvNE=; b=BbQJmXXv/pz7PGKmeaz2oOP9i543IQifAK5zPk6gcwqMm6KyIHTqCcmM+tlAzLlD0P fMUXyLzMCbHFIk18uY6z2bgGw1x3wYmOJj+mmPMTYSjQ/esec1hjK8Nsn+FZ0PcI3h5Z wN6EcsiV0f3cxx9d43SvgGc/wndIIt24Kmh1U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:date:subject:mime-version:x-uid:x-length:to:cc :content-type:content-transfer-encoding:content-disposition :message-id; b=YXakI8doH3tR1nlbA3wmutnOugvLS/ZnYGzIzWifLXs4rFtcPjSYWjIpJDFu1B7Gnl nouXOs7UpM/itqu6nReOEKlr1AfwpckWvDe0to1Y2Q3rfV6RUmRBM36Ki8ybMdwRxJdB uqVqZdtjmR5MbKyNqCTgtJe3rUrJsSjB6Y8N4= Received: by 10.210.35.10 with SMTP id i10mr7923821ebi.22.1247652693981; Wed, 15 Jul 2009 03:11:33 -0700 (PDT) Received: from florian.lab.openpattern.org (lab.openpattern.org [82.240.16.241]) by mx.google.com with ESMTPS id 7sm6197403eyb.5.2009.07.15.03.11.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 15 Jul 2009 03:11:33 -0700 (PDT) From: Florian Fainelli Date: Wed, 15 Jul 2009 12:11:30 +0200 Subject: [PATCH] physmap: probe for partitions parsers that we enable MIME-Version: 1.0 X-UID: 628 X-Length: 1732 To: dwmw2@infradead.org Content-Disposition: inline Message-Id: <200907151211.31062.florian@openwrt.org> X-Spam-Score: 0.4 (/) X-Spam-Report: SpamAssassin version 3.2.5 on bombadil.infradead.org summary: Content analysis details: (0.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.4 SUBJECT_FUZZY_TION Attempt to obfuscate words in Subject: Cc: linux-mtd@lists.infradead.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.11 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 This patch makes the physmap driver probe for partitions parsers that we configured in the kernel configuration instead of a hard-coded partition parser list (cmdlinepart, RedBoot). Signed-off-by: Florian Fainelli diff --git a/drivers/mtd/maps/physmap.c b/drivers/mtd/maps/physmap.c index 29a9011..e314f0d 100644 --- a/drivers/mtd/maps/physmap.c +++ b/drivers/mtd/maps/physmap.c @@ -80,7 +80,17 @@ static const char *rom_probe_types[] = { "map_rom", NULL }; #ifdef CONFIG_MTD_PARTITIONS -static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", NULL }; +static const char *part_probe_types[] = { +#ifdef CONFIG_MTD_CMDLINE_PARTS + "cmdlinepart", +#endif +#ifdef CONFIG_MTD_REDBOOT_PARTS + "RedBoot", +#endif +#ifdef CONFIG_MTD_AR7_PARTS + "ar7part", +#endif + NULL }; #endif static int physmap_flash_probe(struct platform_device *dev)