From patchwork Sun Jun 26 21:02:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 102080 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 B20C9B6F6E for ; Mon, 27 Jun 2011 07:03:43 +1000 (EST) Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QawUO-0001Pg-UA; Sun, 26 Jun 2011 21:03:33 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QawUO-0007bv-IY; Sun, 26 Jun 2011 21:03:32 +0000 Received: from mail-bw0-f49.google.com ([209.85.214.49]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QawUK-0007az-48 for linux-mtd@lists.infradead.org; Sun, 26 Jun 2011 21:03:29 +0000 Received: by bwf12 with SMTP id 12so1305900bwf.36 for ; Sun, 26 Jun 2011 14:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=eJVeZG5q79XRGa3js60dC5XX8BswW5uBKlgC/TpPcSI=; b=LyGBPlbijaQk6N6WnlOZn2Z1i/I4l9bpdSJT5BB+W6xkpWZhj4kbcIvQNcB3yas1LW dzzTbnJZGnQ+0mCqaLUTqz0nE77t09ox4eNiXzIcpw4p4eyH4pxfDRUgSUZbBkq5+39g NYVhlogfUUk2HHEpTbyiuFtaRq9YS4JVgqZ+M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=aJTJYK78RTnYn//65HnOzOm9rbUEg5ZFjpbKi4H+w+FexcxQA2TJhYX0x4/2LcqsIV Epht6DrG5W6Pqycf4i4Srx2C7Sz0SOhnT6mPOKukrghk9KQ5cuPOgk8JwZTC2p+ING+9 6UffHoMsuVzUdlSdP6FSiKQWH8/RSIde1q0hI= Received: by 10.204.156.216 with SMTP id y24mr3824377bkw.75.1309122193360; Sun, 26 Jun 2011 14:03:13 -0700 (PDT) Received: from doriath.lumag.dynalias.net (pppoe.95-55-150-112.dynamic.avangarddsl.ru [95.55.150.112]) by mx.google.com with ESMTPS id t9sm845395bkn.20.2011.06.26.14.03.10 (version=SSLv3 cipher=OTHER); Sun, 26 Jun 2011 14:03:12 -0700 (PDT) From: Dmitry Eremin-Solenikov To: linux-mtd@lists.infradead.org Subject: [PATCH 1/2] mtd: make ofpart buildable as a separate module Date: Mon, 27 Jun 2011 01:02:59 +0400 Message-Id: <1309122180-12838-2-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1309122180-12838-1-git-send-email-dbaryshkov@gmail.com> References: <1309122180-12838-1-git-send-email-dbaryshkov@gmail.com> X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110626_170328_478770_7A942D5E X-CRM114-Status: GOOD ( 13.14 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (dbaryshkov[at]gmail.com) -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 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL Cc: Randy Dunlap , Stephen Rothwell , dedekind1@gmail.com, linux-kernel@vger.kernel.org, Grant Likely , linux-next@vger.kernel.org, David Woodhouse X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org As ofpart now uses a standard mtd partitions parser interface, make it buildable as a separate module. Also provide MODULE_DESCRIPTION and MODULE_AUTHOR for this module. Signed-off-by: Dmitry Eremin-Solenikov Acked-by: Randy Dunlap --- drivers/mtd/Kconfig | 3 ++- drivers/mtd/Makefile | 2 +- drivers/mtd/ofpart.c | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index 4be8373..cc02e21 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@ -137,7 +137,8 @@ config MTD_AFS_PARTS 'physmap' map driver (CONFIG_MTD_PHYSMAP) does this, for example. config MTD_OF_PARTS - def_bool y + tristate "OpenFirmware partitioning information support" + default Y depends on OF help This provides a partition parsing function which derives diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile index 39664c4..9aaac3a 100644 --- a/drivers/mtd/Makefile +++ b/drivers/mtd/Makefile @@ -5,8 +5,8 @@ # Core functionality. obj-$(CONFIG_MTD) += mtd.o mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o -mtd-$(CONFIG_MTD_OF_PARTS) += ofpart.o +obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o obj-$(CONFIG_MTD_AFS_PARTS) += afs.o diff --git a/drivers/mtd/ofpart.c b/drivers/mtd/ofpart.c index 41c4518..aa33b8a 100644 --- a/drivers/mtd/ofpart.c +++ b/drivers/mtd/ofpart.c @@ -174,3 +174,5 @@ out: module_init(ofpart_parser_init); MODULE_LICENSE("GPL"); +MODULE_DESCRIPTION("Parser for MTD partitioning information in device tree"); +MODULE_AUTHOR("Vitaly Wool, David Gibson");