Message ID | 20180130201059.4424-5-zajec5@gmail.com |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MgjLjnQd"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="OroxsEue"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zWHbT55pLz9sNc for <incoming@patchwork.ozlabs.org>; Wed, 31 Jan 2018 07:12:05 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RUIGQOLf00j6QAkhlEII8LQud1Ube9Js8JNzm5b1cck=; b=MgjLjnQdPueURF t89triTV5OVmDHurnXz5a5cSc1MWUKbN6Hihy2dHnV77eMgQHM7grCqWZ4wD/4PzN4XwnF42TdOm9 UVTBxNyNmZ/WO1wZit7LFSncjBcdxzdBXlPlrd1Lq+AA12vLDm2UNKIsC+tT3DgHyFGgwCYGVvE6Y HW5zzjkMLBvI8k3sCwoc4mV3klsL6RV8Nxgc7pKc0Q4AnwEqmf1Sbckhpez4difMRYPkYDtnc6I6d fa5kqEpHgnX+fUZj00WbIxxnDai1kNdKiTh3tGKYyuY9kKRcsnLsqlMtEgxaktkLa2EBlBQMExZrD FWhJlrxyknaTWRrzYW4A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1egcG9-0001oq-Km; Tue, 30 Jan 2018 20:12:01 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1egcFo-0001NU-3p for linux-mtd@lists.infradead.org; Tue, 30 Jan 2018 20:11:43 +0000 Received: by mail-lf0-x241.google.com with SMTP id x196so17228233lfd.12 for <linux-mtd@lists.infradead.org>; Tue, 30 Jan 2018 12:11:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Mt+Rvfwh6VC+YWT2IemlkHiDKw5Jknu+3GNyRPn1jG4=; b=OroxsEue2kfWn4ziPl8R3ZIf/BIp8KLIkEgF6dTn25BuIjWhWuTAWz1x87XwgbIB8v SW0Xxk7ElkxS3WtymjCCNbDp+9Pu4+VuAdae03H2XXSm8WzUvsrk0E+POuEJTqj7YdjN Xy4WGQrnz2Tbm+L2XTDsE9tHuBdxeIakKZUsjYPlkH8czGmqsMVMjy3O9Ncs7A035oQC ous4lO3qot/Tyv8YwFOdCltURfQBPAYaNhmOqQhzRZWszHk40OgL7w6qGUWnZYSSiSCH cRKI+QQFBBYvJEXfxMXMqItjvgnMCrpKkipIOPwsw/IOrXk/YPMtuMDfUkt8fbCxX7yb DLmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Mt+Rvfwh6VC+YWT2IemlkHiDKw5Jknu+3GNyRPn1jG4=; b=gZJ/EeHlKTyQmx/SHnempTZ5CVSYQhuSAzrv/2cyF2yooYRmMUEH6UgXXfHQKGYg1d n1lIQY9IN1I6HgTqDJta7ptyG6R6QvHFzPYLG3p+zLEwd2HzcXR2khYzNrpv99cql9De ezouwLcXgM9mO+CdBZoOJh8U/VuQm7vXN2z45HPnl3ta2lRLkKEkiiKWaiJzYeMAqDbP 9qc716Xe4BZdUB4nt9v3mbyFnGUHJnQVZV0mF2AEA63kV+lZjr14oNzmclRSNy1II+3H 7Vik2L/sThBa1PZLG5X2yEQHWU07m1KxhRS1wArg2jyVxgAsTsuo17UyjjfJOwpJL/pB TVQw== X-Gm-Message-State: AKwxytdTnMKHk4/24i419+VB/7EqtFxhbkCJUSc+Is4IK0Ke7TvC+lyL SVsOZkCsETdDdFslx/7JHFM= X-Google-Smtp-Source: AH8x2277vXRxcBkJpdARk66Fg3YFHU+H5gd4lQKufMCCNdwsASLYxTA1HiFQnd8IjTBuDGouSNCQxQ== X-Received: by 10.46.122.19 with SMTP id v19mr15653459ljc.45.1517343095376; Tue, 30 Jan 2018 12:11:35 -0800 (PST) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id r84sm1311660ljb.89.2018.01.30.12.11.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2018 12:11:34 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= <zajec5@gmail.com> To: Brian Norris <computersforpeace@gmail.com>, David Woodhouse <dwmw2@infradead.org>, Boris Brezillon <boris.brezillon@free-electrons.com>, Marek Vasut <marek.vasut@gmail.com>, Richard Weinberger <richard@nod.at>, Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>, Rob Herring <robh+dt@kernel.org> Subject: [PATCH V9 4/4] mtd: ofpart: add of_match_table with "fixed-partitions" Date: Tue, 30 Jan 2018 21:10:59 +0100 Message-Id: <20180130201059.4424-5-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180130201059.4424-1-zajec5@gmail.com> References: <20180130201059.4424-1-zajec5@gmail.com> MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.8 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:4010:c07:0:0:0:241 listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (zajec5[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zajec5[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -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 X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Cc: Mark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org, Florian Fainelli <f.fainelli@gmail.com>, Geert Uytterhoeven <geert+renesas@glider.be>, Linus Walleij <linus.walleij@linaro.org>, John Crispin <john@phrozen.org>, linux-mtd@lists.infradead.org, Jonas Gorski <jonas.gorski@gmail.com>, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= <rafal@milecki.pl>, Frank Rowand <frowand.list@gmail.com>, Peter Rosin <peda@axentia.se> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
mtd: read partitions compatible prop for "ofpart" type
|
expand
|
diff --git a/drivers/mtd/ofpart.c b/drivers/mtd/ofpart.c index 9f497315e65d..615f8c173162 100644 --- a/drivers/mtd/ofpart.c +++ b/drivers/mtd/ofpart.c @@ -140,9 +140,16 @@ static int parse_fixed_partitions(struct mtd_info *master, return ret; } +static const struct of_device_id parse_ofpart_match_table[] = { + { .compatible = "fixed-partitions" }, + {}, +}; +MODULE_DEVICE_TABLE(of, parse_ofpart_match_table); + static struct mtd_part_parser ofpart_parser = { .parse_fn = parse_fixed_partitions, .name = "fixed-partitions", + .of_match_table = parse_ofpart_match_table, }; static int parse_ofoldpart_partitions(struct mtd_info *master,