Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp754691pxk; Thu, 17 Sep 2020 15:38:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza7XL1QBgG3uhX5cWgRRxmX/KvpSy0olL05H1C0ekc7Y2hT8IbIbHQn38n49mQ+NoenqgJ X-Received: by 2002:a50:cdd1:: with SMTP id h17mr35950007edj.94.1600382313783; Thu, 17 Sep 2020 15:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600382313; cv=none; d=google.com; s=arc-20160816; b=uSJ8oO4tETyMEZUSRt7ZkruHh1itpYIsL393nlKLJwNvcxU7Du29a2skKrwphe1GG6 X9GLeEyEDOpeR1hyVvLN6sGc4UV8rWFl/Oy2BiN2ZajAtdzUwa+KipeobkTG3M5pbCfS 0+NWqI/uWMhfEGzKtrzFOckoDRFsHSkbWFksjH2mQYQa3/ZmV45hJvyv20R7Nllstb1m XhjjFd6HmrwxQ6JhJxREUsfnVZIjiGOT9MKHeYTtsTdcAfOI0NbJS4uLdFkygrropXst TN+V6a7EN+r2C5EWN9sGEOvNFQWF6UiV/DJkO5XiFj6PVrwsJrQ5Ebua3fkJK+IB0t+A ez3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NcCQ1Je9oAgX4LYc/EcGoPoTARE1tOX9ZXniPV2DEvg=; b=b7t5mkjbHi7yr2QEcd8SWsRaSsEmpzYWSIILih74lD9/6wOzU/xHt9hfM6it/6jAWl 6iEcHu7ixh1/1LwazfHxMEtmYf637gYA4x9hOH93NqqWpVRuBmvTxSig5qQDBDGqmYQs Ud3duTpRccu+sKT2a+6lhMeLSA5baK+pWT7/54uQaalmb7ZirveLmff4oiRiV7xoi/SD cuhNp839eMPg9L0xjbX37/Amxwz/YNPByFh284FDFZIQ46BjUb6CoWXZvAUHCHXx3wYV kHA7GfNBGe4/X4tZTROxF2FrK0qXjSxAG3ofk5InusNUOTc/D3noKHNInd6H6wkdtJPA 6GNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nic.cz header.s=default header.b="T+/lW1EV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nic.cz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bv7si973143ejb.523.2020.09.17.15.38.10; Thu, 17 Sep 2020 15:38:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nic.cz header.s=default header.b="T+/lW1EV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nic.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726851AbgIQWgd (ORCPT + 99 others); Thu, 17 Sep 2020 18:36:33 -0400 Received: from lists.nic.cz ([217.31.204.67]:35560 "EHLO mail.nic.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726148AbgIQWeB (ORCPT ); Thu, 17 Sep 2020 18:34:01 -0400 Received: from dellmb.labs.office.nic.cz (unknown [IPv6:2001:1488:fffe:6:cac7:3539:7f1f:463]) by mail.nic.cz (Postfix) with ESMTP id 09959140A98; Fri, 18 Sep 2020 00:33:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1600382035; bh=7qde80XtutzOvUvTVeYWoRsA/xkLB2RT3E7wnLFkILw=; h=From:To:Date; b=T+/lW1EVLKq0DFU1fzPi7x3lBMM8wFOUC5M5e6126NQ2P+sCFZp+2wrMc6v498jNf Yn2UuJnoLkcHQk9k5CxMHP2jnzUsE2zKxCAuXmhtOqmRWB+X9gIYWI52w0uF5eMfXa JSeHrTaEbdlHA4HTPnt7SK/In6no8d6rh/9MMXV0= From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: linux-leds@vger.kernel.org Cc: Pavel Machek , Dan Murphy , =?UTF-8?q?Ond=C5=99ej=20Jirman?= , linux-kernel@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, =?UTF-8?q?Marek=20Beh=C3=BAn?= , =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= , Kevin Cernekee , Jaedon Shin Subject: [PATCH leds v2 10/50] leds: bcm6328, bcm6358: use devres LED registering function Date: Fri, 18 Sep 2020 00:32:58 +0200 Message-Id: <20200917223338.14164-11-marek.behun@nic.cz> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200917223338.14164-1-marek.behun@nic.cz> References: <20200917223338.14164-1-marek.behun@nic.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.nic.cz X-Spam-Status: No, score=0.00 X-Spamd-Bar: / X-Virus-Scanned: clamav-milter 0.102.2 at mail X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These two drivers do not provide remove method and use devres for allocation of other resources, yet they use led_classdev_register instead of the devres variant, devm_led_classdev_register. Fix this. Signed-off-by: Marek Behún Cc: Álvaro Fernández Rojas Cc: Kevin Cernekee Cc: Jaedon Shin --- drivers/leds/leds-bcm6328.c | 2 +- drivers/leds/leds-bcm6358.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/leds/leds-bcm6328.c b/drivers/leds/leds-bcm6328.c index c73097758e353..b3cf84a3eb150 100644 --- a/drivers/leds/leds-bcm6328.c +++ b/drivers/leds/leds-bcm6328.c @@ -383,7 +383,7 @@ static int bcm6328_led(struct device *dev, struct device_node *nc, u32 reg, led->cdev.brightness_set = bcm6328_led_set; led->cdev.blink_set = bcm6328_blink_set; - rc = led_classdev_register(dev, &led->cdev); + rc = devm_led_classdev_register(dev, &led->cdev); if (rc < 0) return rc; diff --git a/drivers/leds/leds-bcm6358.c b/drivers/leds/leds-bcm6358.c index 289dfc412eda4..99dbf62aa6222 100644 --- a/drivers/leds/leds-bcm6358.c +++ b/drivers/leds/leds-bcm6358.c @@ -137,7 +137,7 @@ static int bcm6358_led(struct device *dev, struct device_node *nc, u32 reg, led->cdev.brightness_set = bcm6358_led_set; - rc = led_classdev_register(dev, &led->cdev); + rc = devm_led_classdev_register(dev, &led->cdev); if (rc < 0) return rc; -- 2.26.2