Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BD894C433EF for ; Sun, 3 Apr 2022 23:19:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 22EFE83C84; Mon, 4 Apr 2022 01:18:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1649027936; bh=WDK9U5Jui4suUeiHDpPPYKW2MJmlCA/nc/bKSNgZVU4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=zoHhl9AEmC/x9ABJat8auMeG8bpexovhhpCwgVqimxbObFSyNHcMAT22O2elbLTdy WYg9zh57iULtJZuYn4ChtN/iK5tlF6jjdR6FmXjzbIH5z0oaM0uVaf2Uz6hNBEco1D LJBsCYRPgNOPbAD+q9e95oy9VZ6ZHoJlA29NoVw2X16/ay5jd4EeIq1sEBapXKJ553 RU2nC8U01MexboStnWqZFAg7q3IkWSsqAVj6Cp+N9vZndBNS3LimD0ATMzAZPahYuj y4pvDX6Q5P2hwyaPg9VkK2kCwlsiEcMsg1pSVSNJlI/6RXE4p8ZMPrP5tZ5tyqCZPf d+CLhgWbLrruw== Received: from tr.lan (ip-89-176-112-137.net.upcbroadband.cz [89.176.112.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 5894F83B3C; Mon, 4 Apr 2022 01:18:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1649027915; bh=WDK9U5Jui4suUeiHDpPPYKW2MJmlCA/nc/bKSNgZVU4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hf/gquVm+k+0+P5xRRpN2d89DYET2+o4OsTmZa6ugCOapOqw68A3UIhDdUsgweNAN 4a9I+c9fJ0W5QKnKjSolgYIFxeylW8j6YQF35DgXMVWuihDyRq8xSR0u6g7H6L9Leg XMimVJJkzhoq2WGuBXSwrh4oRt2suIMB4YhzlUQkJzybFNpEo+PJ3IBsZufzxdfDa9 l4xPqRUaKRIUQ3DA2MV1OhKZCkqA4rQLCpFuCHuHkzI6LdMsrhxtUxX9ZUP2/WjmGV DCZWVnzZy4KlmPfd8N5DqGsG4qnrvZ0OFR03S5p3DaAN2FJl3OWhsEKtqUYuv9H3gA VWOvEGGRbQQYA== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Alex Nemirovsky , Patrick Delaunay , Philippe Reynes , Sean Anderson , Simon Glass , Steven Lawrance Subject: [PATCH 6/6] led: gpio: Drop duplicate OF "label" property parsing Date: Mon, 4 Apr 2022 01:18:07 +0200 Message-Id: <20220403231807.693506-6-marex@denx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220403231807.693506-1-marex@denx.de> References: <20220403231807.693506-1-marex@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean The OF "label" property parsing is now handled in LED core, drop the duplicate implementation from this driver. Signed-off-by: Marek Vasut Cc: Alex Nemirovsky Cc: Patrick Delaunay Cc: Philippe Reynes Cc: Sean Anderson Cc: Simon Glass Cc: Steven Lawrance --- drivers/led/led_gpio.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/led/led_gpio.c b/drivers/led/led_gpio.c index 67ece3cbcd0..958dbd31e77 100644 --- a/drivers/led/led_gpio.c +++ b/drivers/led/led_gpio.c @@ -95,19 +95,11 @@ static int led_gpio_bind(struct udevice *parent) int ret; dev_for_each_subnode(node, parent) { - struct led_uc_plat *uc_plat; - const char *label; - - label = ofnode_read_string(node, "label"); - if (!label) - label = ofnode_get_name(node); ret = device_bind_driver_to_node(parent, "gpio_led", ofnode_get_name(node), node, &dev); if (ret) return ret; - uc_plat = dev_get_uclass_plat(dev); - uc_plat->label = label; } return 0; -- 2.35.1