Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4410290imu; Tue, 29 Jan 2019 00:45:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Z1Qru8DZzhua2GItO6nGQz1TeUv+BTwUH3QrJ302p1m0VVLRwNPFGbe98+chf69FPHpHS X-Received: by 2002:a62:f51a:: with SMTP id n26mr15208838pfh.245.1548751519855; Tue, 29 Jan 2019 00:45:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548751519; cv=none; d=google.com; s=arc-20160816; b=VvDBKVH6bkNdtFu6j2UiJI6RNMpLoKi05dQohz5EJV1KNhZnyuf3k92vfCiYKXFuxT DnWozfdZV1GYu57xspRAlqTLLfjaWviVD1bept+JUKvyipGk26TbLz+B8qu0se2bGTki T2Q6d0zGEceOy6CQlVhMOtS1EJc7yO/IKoOAfRf7NDlkQhUEMqNDf3wCN3znlkx/0CSw SWKnY038L6Fu3LB3PH8HUqY5gSaRJqvDBVdlKGPGswEg67Ow/0OyQ9esLgtD4w7jEHn1 SHqUdR0NFfdVkqOaw2tl8jkpc2EFq0YdFY1fb7iZJ4ZL4m3ltMpkM6LTgVYmlrm8UX5D /M4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oFYrT2wnMCaEZTFTRohnQPMYE3Q3Qh5QyDn+YPY7eC4=; b=ZWE06Vq+L6jsXTOtN3eX0rKRwEMoWwshwdBqFVjceCQmjxLXoL9Qzou3a4YZaR1/4l 0KCg64K+VMWZIIa6a7o+PcwoTHgllfQ/2IlHcZNCtULmdQY2Yq2/L8/XNQmUTQz2qxJN ug795Gx3UJEW1VLx8+ar079Go2YirjyXYE+NqmuNWJW/EANHWtiuWTWCKKTk0xOmjkKk 00imw1//TwSeBIB8yVKa+DpJYtV29hZ0gkrLNOomHNvQR+F/rTYtk8nVsOXh/3TMrkCo jecBFrn3sFkAOa6vxrBUy59lsCZHbieDU2Jw3RKP6udo5DAWmoi6Pad1ZNhNZFSg7JEt TG1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=luLynmjS; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x32si34759764pgk.309.2019.01.29.00.45.04; Tue, 29 Jan 2019 00:45:19 -0800 (PST) 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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=luLynmjS; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728067AbfA2Ioc (ORCPT + 99 others); Tue, 29 Jan 2019 03:44:32 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:52405 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727971AbfA2Io2 (ORCPT ); Tue, 29 Jan 2019 03:44:28 -0500 Received: by mail-wm1-f67.google.com with SMTP id m1so16828729wml.2 for ; Tue, 29 Jan 2019 00:44:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oFYrT2wnMCaEZTFTRohnQPMYE3Q3Qh5QyDn+YPY7eC4=; b=luLynmjSgmxhjno+ghspWTDkEw4fn3ucg4QWzyQSRZgMJUXCVFXp/jx+TPHborJqUW YoUZlaJtpHdZnVh2f5oagC06B5RsojUpskYnsjBJE55/z4V1V3tZL1VkA0QN0gccjc2e q/vbGtK4H+RMs9y/n9adtV5RFBMGqCE4ynsjUFZHBtucDKCWb9toqXGJuzug0LM5H4gW lPRDwiDhQgX2a2OxEKUmdtdp4GL4dTR6GVXTmOvJOib+PY6M3mQdCCIDhz7Jr7icS+Dh mo/Ckt7K0Kw2NGV624Dk3z1zTXiI8+tjcV1JklNaJieuy5+ywzeCTWtUr0i0f7+cYSDg Ttrg== 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=oFYrT2wnMCaEZTFTRohnQPMYE3Q3Qh5QyDn+YPY7eC4=; b=tjc6Rj8Ka1e9t0VhbSCQdgNOqL4spSQkV2wEsZjhd1bAmlgmJ2F0RBvAfAiIstLFdB hmB5nX3+9iSUOtFv4hlDoxRnCeSlxOR0eP/QPOv5VsIn/g2Hj471UWLH1ws3l755cH9M I7SlLq7jOJzrtB+3TutwIbrvAI/0hlm+yAyeZslnCUBePzrv9zwANrT8rXy8WzBqlvoe wr9uTGYVA8BxNoUcAVNjXanGcMGUU9g4Ps+nGfUcXizO7cJWaJpQICNOBu3Z/sZ67SY2 y/oNQUaEdHnNXuwjdGQk1fotW6FKPd/DeTyWHiLlzO7SV9rqyNsOs+1p/Np5AyWhjm5o nyMw== X-Gm-Message-State: AJcUukfxgepBuzcphzlEdZ164vnPOPrijPYJEBAomrJe4j77yntOdZ3u otocZlBeVjkD4f4UZV+YfLz2kg== X-Received: by 2002:a1c:b1d5:: with SMTP id a204mr21301315wmf.32.1548751465616; Tue, 29 Jan 2019 00:44:25 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id c1sm3979319wmb.14.2019.01.29.00.44.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jan 2019 00:44:24 -0800 (PST) From: Bartosz Golaszewski To: Linus Walleij , Thomas Gleixner , Marc Zyngier , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 6/9] gpio: mockup: don't create the debugfs link named after the label Date: Tue, 29 Jan 2019 09:44:08 +0100 Message-Id: <20190129084411.30495-7-brgl@bgdev.pl> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190129084411.30495-1-brgl@bgdev.pl> References: <20190129084411.30495-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski User-space tests no longer use it and we're breaking the interface anyway. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index 1c945c967f60..0317917a3678 100644 --- a/drivers/gpio/gpio-mockup.c +++ b/drivers/gpio/gpio-mockup.c @@ -234,7 +234,7 @@ static void gpio_mockup_debugfs_setup(struct device *dev, struct gpio_mockup_chip *chip) { struct gpio_mockup_dbgfs_private *priv; - struct dentry *evfile, *link; + struct dentry *evfile; struct gpio_chip *gc; const char *devname; char *name; @@ -247,10 +247,6 @@ static void gpio_mockup_debugfs_setup(struct device *dev, if (IS_ERR_OR_NULL(chip->dbg_dir)) goto err; - link = debugfs_create_symlink(gc->label, gpio_mockup_dbg_dir, devname); - if (IS_ERR_OR_NULL(link)) - goto err; - for (i = 0; i < gc->ngpio; i++) { name = devm_kasprintf(dev, GFP_KERNEL, "%d", i); if (!name) -- 2.19.1