Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp358354imu; Fri, 7 Dec 2018 02:11:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/W0AtyZT2f3zOPRpwY96091sOv7e8DAu6H+2ELaUptPMN18KPxos3IuV9p5J6eIZU4xYrgT X-Received: by 2002:a62:2b8b:: with SMTP id r133mr1631407pfr.246.1544177501654; Fri, 07 Dec 2018 02:11:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544177501; cv=none; d=google.com; s=arc-20160816; b=GY8mMD23HRzdvs2rLkUpgMiYUeFjA6aaHX0QZDlz8/+vibVL55RLwl9el5IvYdsdaR /9hF/YKCsLiF0XaOmF4H3YKSOZyuOOaoRfd7GniNe4BT6nqCKiOk+Isx5WTUXlAJRxBe ZiF08BWZAzGw7n+RRynd0hsfeP/KtPKUErPD1j+R0cr3bnZNeqy+sDTNdlmiuFZiTk8B P7WRNAKZyzRWLel75GlHWgqkiVcJIwFBlyEPJJL+kKjpPNno2ilpQScKl1bMeBWbDiay Te3vY2U+k4M3keonQkIP05CzEJnHcrw5wziGiWFyWhA13LMcp+5g+TXAPdE9FnZEw6M0 hAQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=c6r+oB04LWOSUBauX4c0QKSrCsE8HIKgSwId9kPMmgU=; b=HiTy0FzWyMpqptDcHJwphCY54jSqSZwk3nhvg25plrnHO2TS7BHVECYePVX5P+ErGj b7tICgtHLRgePiFJRmUoYh4vNinh5yc7IiQ+f20dyMSFGwddwotYReNdubftbl7Z3pDR w1xv4CM+x9YL8HPjfBlS1FQFWIbIyQvkxF0Wty6xQXd8MPHznswXX416/BAPqMEnTxaZ WVnzfs8y68I1cxg2o31ry273oIWj7urjAe4dtkgx+noKu03xNQOVO6tSuwnfZ8RCBtgr KmzGEs9qPP5u54uo9YikPHZNvcZU+UdS3q1LnQNo4b0swUmU2aNJvFL/S428TM99hUmq 3KAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BP4WWdnl; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si2620605plh.274.2018.12.07.02.11.24; Fri, 07 Dec 2018 02:11:41 -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=@kernel.org header.s=default header.b=BP4WWdnl; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726027AbeLGKKo (ORCPT + 99 others); Fri, 7 Dec 2018 05:10:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:56066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbeLGKKn (ORCPT ); Fri, 7 Dec 2018 05:10:43 -0500 Received: from PC-kkoz.proceq.com (unknown [213.160.61.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 442BC2083D; Fri, 7 Dec 2018 10:10:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544177443; bh=73hi6wVsYUlvLgXmMFt5b9vg8t7cv1wo4HtI8LKkHVo=; h=From:To:Cc:Subject:Date:From; b=BP4WWdnlWti1xchPTllvkY8jHVJiddQNYbBuMfrxyU40sBSeHu9r/QAQeLAi9/nRz MfaICo130JSKvtwliJc4Uo1Nb25cJmU4MwYkxmAoLV2JD+ITIPxeuRpRYvMGgS6noc ZhGmGWSze+M+y1lIE2psBErr+MBZUwdksZRWyJ8Q= From: Krzysztof Kozlowski To: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Jacek Anaszewski , Pavel Machek , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] leds: gpio: Drop unneeded manual of_node assignment Date: Fri, 7 Dec 2018 11:10:06 +0100 Message-Id: <1544177406-24752-1-git-send-email-krzk@kernel.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts the main change of commit bff23714bc36 ("leds: leds-gpio: Set of_node for created LED devices") because of_node assignment is handled by core since commit 7ea79ae86c28 ("leds: gpio: use OF variant of LED registering function"). Basically the code was overwriting the of_node with same value. No functional change expected. Signed-off-by: Krzysztof Kozlowski --- drivers/leds/leds-gpio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index 45e012093865..998f2ff6914d 100644 --- a/drivers/leds/leds-gpio.c +++ b/drivers/leds/leds-gpio.c @@ -190,7 +190,6 @@ static struct gpio_leds_priv *gpio_leds_create(struct platform_device *pdev) fwnode_handle_put(child); return ERR_PTR(ret); } - led_dat->cdev.dev->of_node = np; priv->num_leds++; } -- 2.7.4