Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp754995pxk; Thu, 17 Sep 2020 15:39:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaAvzFGhCfr2m05pBwMYI6LD6mtocm+6jvUlqigB6ZUWXJHJv9oZiYrVCs2+UtDmMuOIs1 X-Received: by 2002:a50:8e17:: with SMTP id 23mr35050136edw.31.1600382350968; Thu, 17 Sep 2020 15:39:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600382350; cv=none; d=google.com; s=arc-20160816; b=KhXqO8ADUewJeIgvYsW7CKa/TnjtYjBhv69MDFHQQWQsOec9yP1JgGTg3kPebMSgj/ icOxn55yMtMX3TA8Z+btvCacGKCOasfPfk9UVj4rgxEbtMMhmLnw8wvBaYLRW2ASWJq9 AAZcuB/2ca1+jP0r00+64ZaUb81ahtyulKNnu+PgKFJMOXjUS1nCKbF8RYUG92qbjPVn wSw/PD4aU6gYae6wfd5QfZ71vnfORaKiOkmD7Ocg3CNMo4AO5i9Nrx3BhBbXCunEUDw1 3/9ZeYDuniwtbzbb8k7RhGJchuJDlK9bNkD7LHWQm0wpHmIeaYmg9n5qWRtmoxG9+rp8 /Xkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YwMY+54dMFolHTj5Pr1QKxMZP5k+t+ktfDhF45/+w+s=; b=MTX1wsRAxjsI7rorbwLofsXmrQfTZczt7akkninmZ8hlVkxWbkDkMGpYlJr7teODWl oyfb3Rr4Fxr6jeTEO8bq5CWO5kN9GEHVC6d6YK8npbamLYr/1S+HrLa7i7xCmLW2NCJQ CCNacAU/W+tzcYQWnsacwDcqgC98gRfnOKqvseXyLKi2VlACENeaJ9nH2Fxd4fco1Pxc qLWOUI+QNG+iFFUbCj1Btn04/MC/mQERYP8i53WkHCz5q+m3zWp2BdUOju3ezIuU1CVr pLEHT+mQQbX04pE/iy4Ab4e9U7krWQ/2xAvqeejN+f2tIdBbloAYBRseZVLm43t4IXiC XfOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nic.cz header.s=default header.b=CMNq3jgX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nic.cz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y3si785821edr.538.2020.09.17.15.38.47; Thu, 17 Sep 2020 15:39:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nic.cz header.s=default header.b=CMNq3jgX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nic.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726498AbgIQWhB (ORCPT + 99 others); Thu, 17 Sep 2020 18:37:01 -0400 Received: from mail.nic.cz ([217.31.204.67]:35544 "EHLO mail.nic.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbgIQWd7 (ORCPT ); Thu, 17 Sep 2020 18:33:59 -0400 Received: from dellmb.labs.office.nic.cz (unknown [IPv6:2001:1488:fffe:6:cac7:3539:7f1f:463]) by mail.nic.cz (Postfix) with ESMTP id 3D8E8140A85; Fri, 18 Sep 2020 00:33:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1600382034; bh=w0VTf8xLT7i3JlWTDmTp8v8/O+TbzLFJV1MeEcUgegw=; h=From:To:Date; b=CMNq3jgXWbgNa+C7BlS2IwtRc6mGe5gwlTa6CDaePUn5+MH8CPj3EGdX4mVY4tCWe oNFOyBpXn9ZmsK1NXB7RQVDyplaeJYuGGxzIITB2mIA/6iki14ke46KjfIUq+qtzhi aBWb7bLwLBzn8MJ5DAd41oqCecHq6mUWsOyXwzI4= From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: linux-leds@vger.kernel.org Cc: Pavel Machek , Dan Murphy , =?UTF-8?q?Ond=C5=99ej=20Jirman?= , linux-kernel@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, =?UTF-8?q?Marek=20Beh=C3=BAn?= , Daniel Mack Subject: [PATCH leds v2 07/50] leds: lt3593: do not rewrite .of_node of new LED device to wrong value Date: Fri, 18 Sep 2020 00:32:55 +0200 Message-Id: <20200917223338.14164-8-marek.behun@nic.cz> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200917223338.14164-1-marek.behun@nic.cz> References: <20200917223338.14164-1-marek.behun@nic.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.nic.cz X-Spam-Status: No, score=0.00 X-Spamd-Bar: / X-Virus-Scanned: clamav-milter 0.102.2 at mail X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The devm_led_classdev_register_ext is given init_data with fwnode set, so the LED core sets .of_node of the new LED classdev correctly. Do not rewrite this value to parent of_node. Signed-off-by: Marek BehĂșn Cc: Daniel Mack --- drivers/leds/leds-lt3593.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/leds/leds-lt3593.c b/drivers/leds/leds-lt3593.c index c2d7ffebacc56..061f02e3995ae 100644 --- a/drivers/leds/leds-lt3593.c +++ b/drivers/leds/leds-lt3593.c @@ -107,7 +107,6 @@ static int lt3593_led_probe(struct platform_device *pdev) return ret; } - led_data->cdev.dev->of_node = dev->of_node; platform_set_drvdata(pdev, led_data); return 0; -- 2.26.2