Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4362880imm; Mon, 20 Aug 2018 14:39:44 -0700 (PDT) X-Google-Smtp-Source: AA+uWPylwNIYB1/Ut8jY3h7/5cigxgesA1BonoICU+CzROElLa3tCPkbcwP2GraRR16sNh8ARjmr X-Received: by 2002:a63:cc4f:: with SMTP id q15-v6mr18427085pgi.217.1534801184486; Mon, 20 Aug 2018 14:39:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534801184; cv=none; d=google.com; s=arc-20160816; b=0KtkirybWADLABEZjM1m+MF4UlBtwh0sGrV46oDEoXkq9Om0wMOD7fTxCQc3AloM6p zF+djmNxew281AiLT8gACZL4nFY53qWFddc6XpxQT5ZOu6EUPQgArsacWvmcNKD/2/u1 MMy+iQyOmnRUzMf93k7FsFICXa3dyY4LDXtfac/2dYHft32wrE5opxdpzU6eQfaamd0L K9dtbRE/Se40aoIBEgye/bf3x8VEG0+5JT+GA741RCNixUU5qNWp9HE7Z8eLqxTOqrd5 d7TQkbzN1Q54THB3Q2t+cXLG5Rz7zQrEn1m3msflIio0Lf5u9i8SotaLbhVEmt3Bu6y7 Mx4Q== 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=Nvb8y55bzaa1ANROLAmIw5nE3zC+fpc997ZUleOVsOzjbG3xEhnwkCqvANqmhHRxnc g+MvIxIRt6SkG70xfls9QwdEnOC47SRRst2vA1ZyDHsVRrnogwDo15TD6TyrY3x1PQQO +4T6Xe/et5IMRo98LaAaD8qaZHNZSUYR/XyExP0FfoRzr88j2hGkPwZV06TubovRNYIL q4SbTuqglDNouerG7BjybfOT/tNxdh8RDaldbA+/mAVpC4X0wmLUmFApz9jhAWRFIUrU 2fPZkDRlmmLLmCL+JlTnOrVj1sB8Mbrxo1UOd2TkNVgJlPoza1apWmu5Eiv4DMaegblT /ADA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aNaPTdwS; 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 y84-v6si11113647pfb.161.2018.08.20.14.39.29; Mon, 20 Aug 2018 14:39:44 -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=aNaPTdwS; 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 S1726723AbeHUAzh (ORCPT + 99 others); Mon, 20 Aug 2018 20:55:37 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:38289 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726099AbeHUAzh (ORCPT ); Mon, 20 Aug 2018 20:55:37 -0400 Received: by mail-lf1-f68.google.com with SMTP id i7-v6so2441818lfh.5 for ; Mon, 20 Aug 2018 14:38:19 -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=aNaPTdwSfgHpB3QHrtYZJGHvfY64pgcoLVeKf02nN87S+Lcf+zW2pETX9WWdsUzNG8 orYrl8gCHgU2DuKDseW0pxGlDFABE4+uYgi/Ch08x0bYGLHoFbWRvS+sdZ/+iTF4L8Ns XKEAAHabtJ3OFt31GKY89Wd8syEkqcnMusNua/W+vh8Bb5zpy2IhhJPRPMy722mxr70l kFIMOX5nMvUwri8N1l4oZqlKD3F0lblwBrj3hrMgjZj4aU+fO5pmCIeOy+ckLwzhyji8 LN+4Oi6kzftelf/s5a0CUZBEL1yCQAfjgIYv+HQX0V/DoWLvd23SY3AVGCPWYpO5VTmY swxw== 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=QCCSTwtKE7wlX++achNaoaOIb1ClYZesXXUK7vZ9Yx+ukU2klSdRFnpmoJdTGe8+by 1+dke/NC8c1aoNPuKm7ZtiZGAHq7FKPxAfNt96JK4uoqU0xf6j4qKHVjRtSNb83ayJ4E M9NtxWiqz1w0KmL7SjijWt1N2bs8BxAu7dRj+epy2RHehVJl3EchN405fO0607fBWczB bf1xtuIWM2RCpPdQgzDmnO6BO1rOrMJuGWxboprqTR0W1UXSEwb05zQqHRUN0IEJ+LiL CHFaqtLkfc5gum1jxgeVvf8sg7HDhBSL5pVUNLNZd6yb/WlpKtGfGy46b+MSbvl3YHyZ zNWQ== X-Gm-Message-State: AOUpUlGtytwjOOtqWnyOY4+BnN7UJ4Q3Jp7IUXRI/9ftWwO8B2411K5X MeWqwzuZKvHAi+jHuQW3vFI= X-Received: by 2002:a19:cd8c:: with SMTP id d134-v6mr26646542lfg.41.1534801098871; Mon, 20 Aug 2018 14:38:18 -0700 (PDT) Received: from z50.lan (93-181-165-181.internetia.net.pl. [93.181.165.181]) by smtp.gmail.com with ESMTPSA id o72-v6sm1417868lfg.31.2018.08.20.14.38.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Aug 2018 14:38:18 -0700 (PDT) From: Janusz Krzysztofik To: Boris Brezillon , Miquel Raynal Cc: Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Janusz Krzysztofik Subject: [PATCH v4 1/3] mtd: rawnand: ams-delta: show parent device in sysfs Date: Mon, 20 Aug 2018 23:39:02 +0200 Message-Id: <20180820213904.13475-2-jmkrzyszt@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180820213904.13475-1-jmkrzyszt@gmail.com> References: <20180813223448.21316-1-jmkrzyszt@gmail.com> <20180820213904.13475-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