Message ID | 20151116041244.GA4021@brian-ubuntu (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AD6719F2E2 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 16 Nov 2015 04:15:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AA17820588 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 16 Nov 2015 04:15:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A76662057E for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 16 Nov 2015 04:15:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZyBAJ-0002o9-HO; Mon, 16 Nov 2015 04:13:15 +0000 Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZyBAD-0002m8-D9; Mon, 16 Nov 2015 04:13:10 +0000 Received: by pacdm15 with SMTP id dm15so161161189pac.3; Sun, 15 Nov 2015 20:12:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=gnFHOi91Q0nf3nBYTql+g/OL0lhFtD7p4oB5ZrzIJCU=; b=hjKlBnuP/f6WKOFZOA0qW4Gw+dKHtUtRVU/IjaSvfaAk/iHnmFAIg9g5EXtj/5jyBA GcFoH759d50uX1UOyWrMmtdKrhh5Ehmi+LC9Mq8mlWnK5QPh8i89tBXBQN0KpFDriGxV ms10ELkPx361ivWA64naCzVN6AKJhFZ9UdxZ5yFWpzRIgasoGYEBz4cvN713dGiZ0oLH fkqtzvinjlGfGwoGTKqg9AMUDmfVzqzrlc+IGmbixlBSgq4F5WoQSm3GPLnUxS1SSfBJ /GOb4jhR1v3BZb/LRGThqZuYIrRDqm2U8qMuzDH5AtYAEPBZvzxmHeL5krCHjwtIpTcZ w5Vg== X-Received: by 10.68.178.229 with SMTP id db5mr51984307pbc.79.1447647168234; Sun, 15 Nov 2015 20:12:48 -0800 (PST) Received: from brian-ubuntu (c-71-198-3-2.hsd1.ca.comcast.net. [71.198.3.2]) by smtp.gmail.com with ESMTPSA id ij3sm33118846pbb.62.2015.11.15.20.12.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Nov 2015 20:12:47 -0800 (PST) Date: Sun, 15 Nov 2015 20:12:44 -0800 From: Brian Norris <computersforpeace@gmail.com> To: Linus Walleij <linus.walleij@linaro.org> Subject: Re: [PATCH 1/3] mtd: create a partition type device tree binding Message-ID: <20151116041244.GA4021@brian-ubuntu> References: <1446123152-22666-1-git-send-email-linus.walleij@linaro.org> <20151029162908.GA13275@localhost> <CACRpkdYS5Jf8UC2K0bNdEQZDjTeZZx44Uu-kkof+9E=4Ny0oDg@mail.gmail.com> <20151030175145.GF13239@google.com> <CAL_JsqL2F3p7qBPbOiGytVyzF_aNLWbrCT0mAX1WZo6SxE3JoA@mail.gmail.com> <20151113220039.GA74382@google.com> <CACRpkdakyae95f_Lc-R7Uf7wndj5hyfCqqHziwmZjwm-uNkGAg@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <CACRpkdakyae95f_Lc-R7Uf7wndj5hyfCqqHziwmZjwm-uNkGAg@mail.gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151115_201309_487810_E8B4FFF7 X-CRM114-Status: GOOD ( 27.44 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Michal Suchanek <hramrach@gmail.com>, "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>, "devicetree-spec@vger.kernel.org" <devicetree-spec@vger.kernel.org>, Hauke Mehrtens <hauke@hauke-m.de>, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= <zajec5@gmail.com>, Liviu Dudau <Liviu.Dudau@arm.com>, Jason Gunthorpe <jgunthorpe@obsidianresearch.com>, "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>, David Woodhouse <dwmw2@infradead.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 |
diff --git a/drivers/mtd/ofpart.c b/drivers/mtd/ofpart.c index 669c3452f278..6811bc5440a4 100644 --- a/drivers/mtd/ofpart.c +++ b/drivers/mtd/ofpart.c @@ -50,6 +50,10 @@ static int parse_ofpart_partitions(struct mtd_info *master, master->name, mtd_node->full_name); ofpart_node = mtd_node; dedicated = false; + } else { + /* The "partitions" subnode may belong to some other parser */ + if (!of_device_is_compatible(ofpart_node, "partitions")) + return 0; } /* First count the subnodes */