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 9E92CC433F5 for ; Sun, 3 Apr 2022 23:19:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DC50083BE4; Mon, 4 Apr 2022 01:18:45 +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=1649027927; bh=sXgFy1wts1h1cy8+Sh42wjYdirtcpQW7z7DiT51Pst4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=vc6pfh8xwzIX+aCg5y0F3C0D3mVBvwahEIiJJEkeZe6p4ymrBvCat2+Z1f9up45JF slxRLVsa/5W8ovtag/b7/UNM4PZfc2yzDPkFQdmxkBxQnE+Ij3Da9i+XfzqF9aOS/s BHA8Z3McEnjo/lNElUcEfy76dyhGUcux0k4WT3bswsEI7SKVjxARny+nuAbof7PSC1 3X3UzD0GjuDQT4wm2+NoYyzxs7LZoDSxzLVCYWO5f54eAjFASPmzcEq3rwe5qrU3uP 4m17mM7cWyuCl6U7D3H4mpa2EmDz+YWZ2yRqFMVZj+GqYEC+4N0wLp9+/Wdo7/KRks 1QrY9pyfF2iSA== 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 3272A83B24; Mon, 4 Apr 2022 01:18:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1649027909; bh=sXgFy1wts1h1cy8+Sh42wjYdirtcpQW7z7DiT51Pst4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y4tMs43TPXobxJbaeCMfF7vI+Pf2F79RdDEQfTnKlv9YyRf/hiui8c5OQ9JW38yDG uN9o+jEFrLp0f3ZzKuTBbvPDKePHOZ0rt4/sXU058cVpGVAhCE12fklWZ7enXCVXQa LjoG2ophMbzptsEEBxkIlXdRRi4aP42y4pWEvBd+abORiq0sSGxvYqi8UiGWB3k6qv D2uy3ToQb9NVkHx7TMzuCz/vCJr6oLU6N1quoVc3jtkQqrYpnSHIxSAm9IDuQr4oUR WXQ18Ssl5ghmvLeDBZiy7ms527U7YyQTbPASN/Ce/8CHoZdat0f0fvHGE+sAPhGz8C Ku0Y83NraEqHw== 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 4/6] led: bcm6858: Drop duplicate OF "label" property parsing Date: Mon, 4 Apr 2022 01:18:05 +0200 Message-Id: <20220403231807.693506-4-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_bcm6858.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/led/led_bcm6858.c b/drivers/led/led_bcm6858.c index fbf46a114c5..4fd840b42f5 100644 --- a/drivers/led/led_bcm6858.c +++ b/drivers/led/led_bcm6858.c @@ -211,26 +211,14 @@ static int bcm6858_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, "bcm6858-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