Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp826137pxb; Tue, 3 Nov 2020 13:38:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8qR251VpkTu1k6lyHBV6VL8B+ezjAAf/fEwCE/RUeT8JUX/ejVc9q+tb53/rbssK5EQpQ X-Received: by 2002:a50:bc04:: with SMTP id j4mr12309322edh.316.1604439515644; Tue, 03 Nov 2020 13:38:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604439515; cv=none; d=google.com; s=arc-20160816; b=qQIlRb8J3xKbsO0ckWtDXJFvWNwrMPCckik81oCdhJRQchiyjUeN2bFXO/r63Knkr9 Z7TErDGoKY+WM5CglHnM1m8xPop/MaQDOilpBGJfIYh51nGlPR+1ql7PrgRzDWX9auUl Z7rXP4t0SDMKD0a2Ff+iwt477T3JPAjekL0YBj84xP7+2WGOZg5PvIPr8nsdiJEfhoDt OneAQ+BO8MjHNSqbNjwMkdAIwFxrgKlu7wpxFKS3NLOHywsxAJ2De2DoBjQP6Mjuz9aL bjkyreoGHuyTH2TObsHqdU4G+c7g2NIVWs4nmj5H7uh8NeYeUfwXSVfgM00oXwP/w/Uo GF8w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=I1cwI8uWJm2lS/rrvcQgF0uRYUuHYPv1oBxJIsG/jXo=; b=RMLB/rEeHquafotnykpFrlkKtinPL1t0+++kRTWIsEPDxbSX2mZJw8yE0d+hxfV7lf eALI9rPm0C8CrSRUxtD59c6xTEVMb7+ziTO24i3W2RdKLkgdwzJMln7BTwzlwbzw74fX v09EmEKAJMuXIa+PMn8IFQ8rD7o4fRx3s+JYRqsNCKEtwiF7CS4/E/7ZWiF/g2H39WbQ LTBDFVsHTM/8FmZoiU6ENpfgvKg3z791Yjoq0lWo/r7duuJIt7owyJKgkvKoSevwIMlf qN4riTUUU0fY30RKE41CZt2semve/8eQCcmRw9eaIZurpPPkye0Cso6enAQvbXMu+5lq X0ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JZHzXQSs; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w21si27694ejj.377.2020.11.03.13.38.12; Tue, 03 Nov 2020 13:38:35 -0800 (PST) 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=@kernel.org header.s=default header.b=JZHzXQSs; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732820AbgKCVdy (ORCPT + 99 others); Tue, 3 Nov 2020 16:33:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:58862 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730614AbgKCU4u (ORCPT ); Tue, 3 Nov 2020 15:56:50 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0FDF622226; Tue, 3 Nov 2020 20:56:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437009; bh=CyFb5VJgvERbUC354uy3tkiqj0u9ziVcYwZrsK2ObNE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JZHzXQSsw4BYRlNi6KIZfvpvPhEe7zFNROlUv3o0LhQUUrZF68wly3GjH9LG+towD NVKiCrALjEBc1I6GAI4kfJh9cdotkYEygZTd8ciygUotNauCNDdtfwHMRDOhHnPmL0 63apF8mY8nibPznzaBHkhQyDQpM5UUjcfV8DxXgs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Marek=20Beh=C3=BAn?= , =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= , Kevin Cernekee , Jaedon Shin , Pavel Machek , stable@kernel.org Subject: [PATCH 5.4 106/214] leds: bcm6328, bcm6358: use devres LED registering function Date: Tue, 3 Nov 2020 21:35:54 +0100 Message-Id: <20201103203300.955807997@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203249.448706377@linuxfoundation.org> References: <20201103203249.448706377@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Behún commit ff5c89d44453e7ad99502b04bf798a3fc32c758b upstream. 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 Signed-off-by: Pavel Machek Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/leds/leds-bcm6328.c | 2 +- drivers/leds/leds-bcm6358.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/drivers/leds/leds-bcm6328.c +++ b/drivers/leds/leds-bcm6328.c @@ -332,7 +332,7 @@ static int bcm6328_led(struct device *de 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; --- a/drivers/leds/leds-bcm6358.c +++ b/drivers/leds/leds-bcm6358.c @@ -137,7 +137,7 @@ static int bcm6358_led(struct device *de 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;