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 23D82C433EF for ; Sun, 3 Apr 2022 23:19:02 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BA20983B3C; Mon, 4 Apr 2022 01:18:41 +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=1649027922; bh=ZbgW6x0pH4r2DUzZQ7BRp3QvLxQbgkwkekZgWtWD1IQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=sAYzZLUzpmlRkKjZiJGYXj8wb/kTbw38Gdc6vV+pUiDjR8WYfaglrxsEMQmdrp5/u 5Vm9jpE03FRfDVdKZuTYD4HxGbOhq6s+qPoGY72HcvC3Ox7dT/vcRMSz5/4FjehtlO 7vwWzrOTJ93LfjIv9sIi1JEs1tdQKbVlYBR/YozWki510UYS3gmbIuKm+o9ZAc2jMo nGoU9ujDipwE4GtTsOsbj8ShKIxXgmMFvkHwGUk4PnuSstF68SZS+TFGdAvLbmi6de LC975VOC/NtJrI+Cb3Lz+iDnZ4QOxGpVf5G8yZpOh8OmrQVJEYAWEN5mcrPbIgAkwP QNsd+QMi4DyLw== 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 303FC83931; 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=1649027908; bh=ZbgW6x0pH4r2DUzZQ7BRp3QvLxQbgkwkekZgWtWD1IQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TXwa7G4soilMx624UPJHpqCnJOFTJkFv2bDLlHuaahMOwdtTd+5hvSpBzEhXSiSVv cS+gcKnSojNzILsmGxegg2gTxdsg6QZK9ICQa9SU9mMvTJUIJOvJI66eCTOxkEsJX7 +Clo0N9I8LkAIEX25cPyNLgv7zlC0OXZUsUN4VLSlocYiwsfcb3kEsjG0mr5g2hK+V hb+8kSSUHZSVb1a4hDmm3XMcARJw15k1HoCXiWAnx4mvYvADZheE2rPOI7XWFTaByR Lqy1ouT8Yi0/ezEx0zPDxaTOzHTHbC2JnRpVKlPaRA3pjq1hwRrOw2/Mj7/blj/vo5 Sg8EEl9AIXX5Q== 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 2/6] led: bcm6328: Drop duplicate OF "label" property parsing Date: Mon, 4 Apr 2022 01:18:03 +0200 Message-Id: <20220403231807.693506-2-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_bcm6328.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/led/led_bcm6328.c b/drivers/led/led_bcm6328.c index bf8207d638d..f59a92fb1fd 100644 --- a/drivers/led/led_bcm6328.c +++ b/drivers/led/led_bcm6328.c @@ -204,26 +204,14 @@ static int bcm6328_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, "bcm6328-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