Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1291746imm; Wed, 19 Sep 2018 15:54:30 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda6EdcFK/9Greyf75kUDLWSjReVh2Dykm1rPWGJE96HaoVS3UwT5Q9eaPHBSeyLla19eVLy X-Received: by 2002:a17:902:9a06:: with SMTP id v6-v6mr36474561plp.316.1537397670929; Wed, 19 Sep 2018 15:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537397670; cv=none; d=google.com; s=arc-20160816; b=LliwU+WeSf7pKsydfHPt7j5fWyf0rJBk0CCmyPG0/KUTfAyJWJKgUZgr02NO7M0c15 Sq9JsJmMXQ2qjW/y7gqBoqG9CV3iK7LkMzcV+D6QlMOyX7LN3uMl6YTzRmHlhQ6qtbrM k87H8oDRxnigBaOo+b9VL/7KxShosc0d99Mt3FBOpD6DslkIyZtYrIsaMY5Aro6z07W4 69WyAbiQcfUPrVB12Aft2oRAORpbWn8EJXd7EGvXcjO7DjtV2wtw38EMp4+vlFdxVRIQ uVvM4coAhVepB9++4nnbU7+OVu62D/Um55/vBYkfdwqmqE5kkdRBSIqbcIuPomyHzZtu aZfw== 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; bh=TNGVV5souHhukOKfQeLzkV9PzOLzU8pgOf/s7Xdccu0=; b=bqZ85Wydg09pIUVG3HoCwcO5WWXq5aO04i0EOwCM/jTYFiqq2cSihH9QABD3clAq+/ Ugw8dVx2gJH7vW09Xlz5nqfh4GtNkWwBCfcDlKxJ6ERWkYSkXbBB5DaAaDqTGM4qQfOq VOaAKzhv2w7hUZteanvWYVGdp5yLKenQLeWIaNKjw8KHyfkYXojX2h8dxOSjGloir+Jk QhQjgkP9lRDu2Z8wFngdJgHjTRQiEErBSKSW3IEHdeRVZ9B/8VlklpW1T+8L7OExREd9 Rwt9IyMCPKA9zHQpKn8v9jWvozfStQFtfMeiC7CCOoit3RbiJAjvtQCZOC4BaXh7gQOb F6tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J25mLYv3; 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 v10-v6si24704356pfj.354.2018.09.19.15.54.16; Wed, 19 Sep 2018 15:54:30 -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=J25mLYv3; 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 S2387519AbeITEbv (ORCPT + 99 others); Thu, 20 Sep 2018 00:31:51 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:34737 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731471AbeITEbv (ORCPT ); Thu, 20 Sep 2018 00:31:51 -0400 Received: by mail-lj1-f194.google.com with SMTP id f8-v6so6572065ljk.1 for ; Wed, 19 Sep 2018 15:51:42 -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=TNGVV5souHhukOKfQeLzkV9PzOLzU8pgOf/s7Xdccu0=; b=J25mLYv3m1wZ5rN7TGwl2gHVN7aLEsLkP8uNqnqcma3DUhPy0LNpvI43btD/iu39Ti coPPW7Tk9hATv2wLQqGbX1WoE33CxAx01Swjmw3pXtLFJTzLLBhcEs396DwOlhK1wt7x wX7DvyJ0qV9ULHgsIUrOwstUslp5uCPG08uHr6JU4Loz8VEzVvrNW65nELIlTkpTWSTH Yy/oub3v8A5X6Sfb1bqmk+OwpJGhPF5Kuod+Hx/rnkhyHq6u1OwZPPp4eVhRb1oIkYai ywP9BtqjAshFns8zP8RiDPqvMNhF6w2NtWHriFiLSPWEZT81EdI6YFrrFfxkjeyS0+mD INdQ== 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=TNGVV5souHhukOKfQeLzkV9PzOLzU8pgOf/s7Xdccu0=; b=CFeLG7diKY/z1KObgcRdRTQi0ss7HvY3ZpZ5xwIYI/fRsOhUkX99kflXcnr1ssHlN8 j+yPfAAs55vohFdhB6NDkMXY+RKFZ4u20BZOaidtbiE7ddKrEhPjhhCw0KA4SbzuDe7I x5Vm3omUqlQ/1LOQniRjDWx4E5dwfZr0eYeYke3k/o8/ukBCliHRLvDCz2v3stzVSheK hBKUD/9JF0SGIL4JFQLxd1I53Ak2S+VQ4tmjGL72W4iHf3M+vx2B1rhEMsQU6O7dtgof op93CS3GlbUyJmq/kxywpOrEo9Yd9b1jz182XCPSTTDJfAh5HXYXawR8RIOdXGjevHu7 jU+A== X-Gm-Message-State: APzg51D2tQLCRwkhwNxvx1Yi/y0vMq8PAJ5z2/O5Xdzx3/ulHSlpSucK yq34VCGmdWVCB77xg6qdfps= X-Received: by 2002:a2e:360c:: with SMTP id d12-v6mr23200372lja.88.1537397501642; Wed, 19 Sep 2018 15:51:41 -0700 (PDT) Received: from z50.lan (93-181-165-181.internetia.net.pl. [93.181.165.181]) by smtp.gmail.com with ESMTPSA id q22-v6sm1249211lff.10.2018.09.19.15.51.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Sep 2018 15:51:41 -0700 (PDT) From: Janusz Krzysztofik To: Miquel Raynal Cc: Boris Brezillon , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Janusz Krzysztofik , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 1/3] mtd: rawnand: ams-delta: show parent device in sysfs Date: Thu, 20 Sep 2018 00:52:53 +0200 Message-Id: <20180919225255.31175-2-jmkrzyszt@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180919225255.31175-1-jmkrzyszt@gmail.com> References: <20180820213904.13475-1-jmkrzyszt@gmail.com> <20180919225255.31175-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 a2d2dfc55984..efe12066dfbc 100644 --- a/drivers/mtd/nand/raw/ams-delta.c +++ b/drivers/mtd/nand/raw/ams-delta.c @@ -160,7 +160,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