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 EC087C433EF for ; Sun, 3 Apr 2022 23:18:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 69D6983B34; Mon, 4 Apr 2022 01:18:36 +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=1649027916; bh=TemzbIZP9scBXfboss2zvAQYLeML66w1KmOHZw9wX/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=raGYllQXMiikJJoDo8uQXwzbsA6JZTI9KagFEmX3WjMRSeGlH1qQNpoeybMUlV9Sx iylQJ1xb/4/+1MB1C58SdC79RHyv5VcQ3+zg3lPHE/uLN1XIFqzGmOd+g2qjwexUPi lVLr4JKhbebcE5pvk9G8v3GT7qOMPK3AwGkd+ndCpKb0yuTG3GGKdKqAxLPuWwGpC+ UK5VAQxQb1y8mvNxG7h/4arpHuwONMVrmAoCp00oXdKvbbhgL4bgwnplAYzImwcLkP V8v0nyLzJpwzrTvqH3Jz5HI6NWsRU645FEHFtTf/PX9bRfOajTM2qmJuCaFNfYX0dZ qeaI7ZXocN3mA== 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 AAF5683AC2; Mon, 4 Apr 2022 01:18:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1649027909; bh=TemzbIZP9scBXfboss2zvAQYLeML66w1KmOHZw9wX/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P/SVLbnenPRB6lyKAsMyaBCn9t1vBdbglCaE04/qFGfHaT5tjbiIkLK1F2ZG4K2Nr 4Zg0RMjqvBzxMJUPtYMXAnk/Ja92W7o0yQQABEsbiyfeAr9QUew0wN13Qqib/ZI8KP DwPBstNMSVJUPqcNMtZ9GwgbBO8GxBV+rJJaXoPgyuKlQB5dXjUmRAo2mR9kyfjf91 2P4PzV7zHJm3hshQyJEy46i9q18kFYhmPFtgncxRJklrowJYAkpL7oi1yRxs1WUdtq A6Z8GcY3KKEFCqsMqyOly3hmjiBLv2fEmf2TOM+wkaJEn/q0KY5J8z1FXHUsqggLA0 ciEOnnq9huffw== 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 3/6] led: bcm6358: Drop duplicate OF "label" property parsing Date: Mon, 4 Apr 2022 01:18:04 +0200 Message-Id: <20220403231807.693506-3-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_bcm6358.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/led/led_bcm6358.c b/drivers/led/led_bcm6358.c index 3e57cdfd17d..25aa3994d0e 100644 --- a/drivers/led/led_bcm6358.c +++ b/drivers/led/led_bcm6358.c @@ -174,26 +174,14 @@ static int bcm6358_led_bind(struct udevice *parent) ofnode node; dev_for_each_subnode(node, parent) { - struct led_uc_plat *uc_plat; struct udevice *dev; - const char *label; int ret; - label = ofnode_read_string(node, "label"); - if (!label) { - debug("%s: node %s has no label\n", __func__, - ofnode_get_name(node)); - return -EINVAL; - } - ret = device_bind_driver_to_node(parent, "bcm6358-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