From patchwork Wed Jun 10 20:38:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frans Klaver X-Patchwork-Id: 482870 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 79D6A140297 for ; Thu, 11 Jun 2015 06:43:55 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=05gG76wv; dkim-atps=neutral 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 1Z2mpG-0002nv-3l; Wed, 10 Jun 2015 20:42:18 +0000 Received: from mail-wg0-f66.google.com ([74.125.82.66]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z2mmt-0000Bu-QM for linux-mtd@lists.infradead.org; Wed, 10 Jun 2015 20:39:52 +0000 Received: by wggy19 with SMTP id y19so8935958wgg.0 for ; Wed, 10 Jun 2015 13:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3hBnhRIYz02aw8PQrWoYwJ0bqw85FUBVqCCPnlWfdbE=; b=05gG76wvMQsMKLt+uqkI5Ci8Zjxkkeys6X9DT6H+rudlkaoGDoRQzDXnr7J/g+uawQ +wWg6tsshq1ARhTObs/Seq9P9dv6BH1CJUTW0Rbl6KbnjDPsvMjbBwHV2Ha/+gR3pGqY Pg7vVJOMwFYdAsX8+W/WVlZK5iIwXO3jr3Zl2ZqlDupAeiTC14moIKxVWODgP/XZJE5t 3ONURR48IyaMHwFPps+5eZKFA/p3Xes8SqlWycFduNiroXVDl67XZ1k6yvXEJaco75rq eS78w3wfB5oDN28MqHguTJy06LLTaZSOguiASzoZV5V4cGJ7SNdVVLK28bsmugMiYi7p 8XOQ== X-Received: by 10.180.106.137 with SMTP id gu9mr23164872wib.54.1433968769358; Wed, 10 Jun 2015 13:39:29 -0700 (PDT) Received: from localhost.localdomain (82-171-48-45.ip.telfort.nl. [82.171.48.45]) by mx.google.com with ESMTPSA id a8sm9608025wic.22.2015.06.10.13.39.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Jun 2015 13:39:28 -0700 (PDT) From: Frans Klaver To: Brian Norris Subject: [PATCH v2 19/60] mtd: maps: pxa2xx-flash: show parent device in sysfs Date: Wed, 10 Jun 2015 22:38:33 +0200 Message-Id: <1433968754-10651-20-git-send-email-fransklaver@gmail.com> X-Mailer: git-send-email 2.4.0 In-Reply-To: <1433968754-10651-1-git-send-email-fransklaver@gmail.com> References: <1433968754-10651-1-git-send-email-fransklaver@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150610_133952_074320_BB144E27 X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.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 [74.125.82.66 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (fransklaver[at]gmail.com) -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.66 listed in wl.mailspike.net] -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 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: linux-mtd@lists.infradead.org, Frans Klaver , David Woodhouse , linux-kernel@vger.kernel.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.18-1 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" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Fix a bug where mtd parent device symlinks aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver --- drivers/mtd/maps/pxa2xx-flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c index 12fa75d..9adc4ef 100644 --- a/drivers/mtd/maps/pxa2xx-flash.c +++ b/drivers/mtd/maps/pxa2xx-flash.c @@ -93,7 +93,7 @@ static int pxa2xx_flash_probe(struct platform_device *pdev) iounmap(info->map.cached); return -EIO; } - info->mtd->owner = THIS_MODULE; + info->mtd->dev.parent = &pdev->dev; mtd_device_parse_register(info->mtd, probes, NULL, flash->parts, flash->nr_parts);