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 7BBA7C433EF for ; Thu, 14 Apr 2022 14:15:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9232383EB9; Thu, 14 Apr 2022 16:15:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 99A8F83E9E; Thu, 14 Apr 2022 16:15:09 +0200 (CEST) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 45E9583E69 for ; Thu, 14 Apr 2022 16:15:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qk1-f180.google.com with SMTP id c1so3919491qkf.13 for ; Thu, 14 Apr 2022 07:15:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7893/ihsm+8v1ioCKb2+s+49JIJVfNmIGjjkPPILu68=; b=FrpFMS34weWzDxoCg8YtXflC7dCQsTV7/AbhSJdgba3fBnWznDkixLDLoIhmx3XTVL VoJ8WQnK7Q15batfzuA4J1R0cO6Y8rsLldHxOkNh3cjSQYOdbkBPJjLkO1DXgikW5YD/ g8HMV0IqOT0oouXpt75P+cnHjB/TcSONYRNQx/PtWWdz048XZe4Zb7ue6U9/tux7NgiZ XycwWJupR9e94Q2j2K/3EFLXR7SLOMPnD5AyB9fQkxcy13IPqV5Iz2PD86cx35lPR80W PA04qaTF39lwy33lqZR+rG+/maTPlx5UDODw8pKWyv5VPn6BeznQPtgQPH7NNGn5mg7j 9fVw== X-Gm-Message-State: AOAM532krHRIrOP3NHPvUtrxxd5LsfYXjIjB473xpfCmTbqjWEdzMN4z YMdO88AVXsvsswDYOD/zlaihNqM05w== X-Google-Smtp-Source: ABdhPJz/BLw/MxBdzlDWNmhE+LvYViiRfAmaSB3ia0eBLh4HgbMvCpmm/MDv35bYBsfaUONft6+gIA== X-Received: by 2002:a37:a58b:0:b0:69c:81d2:6e with SMTP id o133-20020a37a58b000000b0069c81d2006emr1127512qke.381.1649945704904; Thu, 14 Apr 2022 07:15:04 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id o10-20020ac85a4a000000b002ed143903a9sm1276070qta.45.2022.04.14.07.15.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Apr 2022 07:15:04 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 2/2] led: pwm: Drop duplicate OF "label" property parsing Date: Thu, 14 Apr 2022 10:15:00 -0400 Message-Id: <20220414141500.2816032-2-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220414141500.2816032-1-trini@konsulko.com> References: <20220403231807.693506-1-marex@denx.de> <20220414141500.2816032-1-trini@konsulko.com> 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: Tom Rini --- drivers/led/led_pwm.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/led/led_pwm.c b/drivers/led/led_pwm.c index 4e5027225870..10bd1636c386 100644 --- a/drivers/led/led_pwm.c +++ b/drivers/led/led_pwm.c @@ -151,21 +151,11 @@ static int led_pwm_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, LEDS_PWM_DRIVER_NAME, ofnode_get_name(node), node, &dev); if (ret) return ret; - - uc_plat = dev_get_uclass_plat(dev); - uc_plat->label = label; } return 0; } -- 2.25.1