Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp3645110ooa; Mon, 13 Aug 2018 15:36:34 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyBecBw5e2wOyWD7kO9yqyeufzUSzqNxmzkXFhxO5X66H/XzWVfLifUnzadrYs1YEh2P6uZ X-Received: by 2002:a17:902:8494:: with SMTP id c20-v6mr18010542plo.336.1534199794690; Mon, 13 Aug 2018 15:36:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534199794; cv=none; d=google.com; s=arc-20160816; b=NODCIRO4E8WQLMBtt+Ot3nWmx2L5AXBMPKPyLl4dfaUF7ska9QKOBaSqCLQjxkaZ6w zYh1qbRdimZyEAyOSg61aY9xLy5z+ejrDkBeoNEOuxUQikouIIs7moHeUyr4C+t76bko QdEJ0GH88zvY38krx9hLSxW4IBGKkNnaCm8vUuZbRskiJGm7y3tXXOJOPRuYmnXGR1gu tIZR4nxQis6mDNCT4t2rT9zYi94w5ukOXmZbGpYKecu43cE4IKhdwAeIF1LCZ0nKh5Mq 8I2k54zjC81I43ATbF5Pfk8NrQb3dgGkilnJGQRrwWXwXT0CKEVJugz2vBJKjwOnYY7D AbEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=6W0P52EAcGilRXYojwcSyj8nFtjmU04fBIXHBvFHfj8=; b=0bMWraze1pIfUBleus9ZaIMKZ64vy+uL9oNAY8PLd6URQeLDUl0pYeCMZhPhnW3sPa JFte9iA99tZKb7QZhBmWtlLs5lWWhwbgkD+GpqGAI1wYGvxCykN6RLhGLsMoZ/IK2UVc IsKAPBb6794oQIMGbdkDQnx/+TkMD+JEM8cEqsvWW2rZU8/ICXX4d7Hc1v59g8vA2on7 j9V9CyRxThNebkSp5vbdT9EiUePNJZgD3k//XkJXbuwQgBM1YpGpDqeOMysswkyh3W+V YL7HaGphXG989bbNK/HuX6fTTLVXmdGLWiL5UGJS/OHqevk1tejVIERNDi/DBDzTTzKe CkRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aqimPGdZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6-v6si15794236plt.497.2018.08.13.15.36.19; Mon, 13 Aug 2018 15:36:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aqimPGdZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732278AbeHNBSy (ORCPT + 99 others); Mon, 13 Aug 2018 21:18:54 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:46683 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730178AbeHNBSx (ORCPT ); Mon, 13 Aug 2018 21:18:53 -0400 Received: by mail-lj1-f194.google.com with SMTP id 203-v6so13811329ljj.13; Mon, 13 Aug 2018 15:34:39 -0700 (PDT) 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; bh=6W0P52EAcGilRXYojwcSyj8nFtjmU04fBIXHBvFHfj8=; b=aqimPGdZuTLxFndzYNxVd24jETvtQP0QpScjaW9Uc42FCJOmSHSe0PI/Dr3YDYPCl8 UBpwjJnvPc8TCcRz4PcjSB49e692GAcO0pEVywiCg/cVfFhQc9ePv2RA+o8cN+sZzB+M tNN7TNcwau2t8PKxd3obXARgwWCNkfNPtL5ywDheJLdt5T2AlN5tOrzv31QpwzJkq6ut +4kItkLrUpvMOUd6NHlWmI9fcE3TrSbqwMFUXSqEi0MW8inEKPErpDT0Kkl7Vb07XhDL DkfJzISV+rNB663Adl9RtjdBByORfeKc+MTfGU02f+3eo7HtYrXXFzSRUwiZWbLvm9jY LfWA== 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; bh=6W0P52EAcGilRXYojwcSyj8nFtjmU04fBIXHBvFHfj8=; b=gzhwskPlO9eczvC/9pVyHQlY8FlVnHqtyunlTj+tS3k7QtjKbSHZRZogDw+b114lF4 wZAvy7dI4RX6gG4bpqeThe57e7gLi1RuLB9p6bNENfcQceWOAjY/MWY6JbzoChVaZolI oi80ch2A+PNQ+0NOng90dXyq53vMT73g7DLqKCm3ODYEAYIn6KB9Cus0OwZIxzaEIo+B owaWtlrcVwNu4BR9X21ZBzFSjGzoBxvQgmmX8gIrsxSHUIt/i38dE1tMCk7Bzp4tzAOl 6cpe8egacVgQ+x3LZHs/igH6d6Wi37Yl9xvAOmrlhYd6HFtxPyI1w8cfj0IpPzCdHD/f tiqQ== X-Gm-Message-State: AOUpUlEKpsTdLRkFNr4DdZySj1lmJP16f6H8XIbYDej9OVHgrXvflWIc rzLo+QsQO1bxsC7e0J4rC7eWGKiF1GuUTA== X-Received: by 2002:a2e:8950:: with SMTP id b16-v6mr8208272ljk.111.1534199678368; Mon, 13 Aug 2018 15:34:38 -0700 (PDT) Received: from z50.lan (93-181-165-181.internetia.net.pl. [93.181.165.181]) by smtp.gmail.com with ESMTPSA id f136-v6sm3572702lfe.71.2018.08.13.15.34.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Aug 2018 15:34:37 -0700 (PDT) From: Janusz Krzysztofik To: Boris Brezillon , Miquel Raynal Cc: Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Tony Lindgren , Aaro Koskinen , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-mtd@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Janusz Krzysztofik Subject: [PATCH v3 1/7] mtd: rawnand: ams-delta: show parent device in sysfs Date: Tue, 14 Aug 2018 00:34:42 +0200 Message-Id: <20180813223448.21316-2-jmkrzyszt@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180813223448.21316-1-jmkrzyszt@gmail.com> References: <20180806222918.12644-1-jmkrzyszt@gmail.com> <20180813223448.21316-1-jmkrzyszt@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix a bug where parent device symlinks aren't shown in sysfs. While at it, make use of the default owner set by mtdcore. Signed-off-by: Janusz Krzysztofik Reviewed-by: Boris Brezillon --- drivers/mtd/nand/raw/ams-delta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/ams-delta.c b/drivers/mtd/nand/raw/ams-delta.c index 2a8872ebd14a..af313c620264 100644 --- a/drivers/mtd/nand/raw/ams-delta.c +++ b/drivers/mtd/nand/raw/ams-delta.c @@ -162,7 +162,7 @@ static int ams_delta_init(struct platform_device *pdev) } ams_delta_mtd = nand_to_mtd(this); - ams_delta_mtd->owner = THIS_MODULE; + ams_delta_mtd->dev.parent = &pdev->dev; /* * Don't try to request the memory region from here, -- 2.16.4