Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3212888pxb; Mon, 9 Nov 2020 05:44:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRO7pdWu1/4OvaP6cMXrknlBUuPm7e8MRypGBlMy7MqB+QsY8Dgi5mVZpEz5mE9jSTw9Li X-Received: by 2002:a05:6402:150d:: with SMTP id f13mr15187606edw.119.1604929484710; Mon, 09 Nov 2020 05:44:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604929484; cv=none; d=google.com; s=arc-20160816; b=qe3Tkes/ktNNDE6iRk7ghuLUbK3SoGYQM7oZtpPLIiwMNpBixbs+Fxf4fXgcw3uVUz OgZuuwfa3RVkB84Lk5OtiQmZiSuyRo79ICvIWO4u3MbxyQWlsn6aeHzpDx8ZnBPR9YxC dU71l43Ej6OhSr+OusVZwreOPrRUDWkmC7UpV3odNNN3YWj7IMpkVi6cWS2vasZYMKtc qplFKzMShxyxu7Q34ekNa1tPICi8iGBW9XaOIAzN6cgwPsJgz0p2dl4TPgLBEcByErjN xlJt9+s1/nEshB+2IYitTCbeOKy41+/RbNbF0p0R7F/K/WApYIUz/iszwEw/jGpm99f/ u2XA== 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=wPbvOs1pcmWpjpCoNJOui2l4WTHUMEiu3n3YtZT46cE=; b=tTDR3Z3T2D9/YZys2soWkMB7hJI9Twk2PsCAV+TTCwQFF4aPRuj3fKplc3NzlLtihK TIV46GY2XGYOg3JRU9Di5YZE1vx2Pr+2sDxJEoXs+QfwHFtSOgkKDeMS5N/9LoNC4bH6 O2H+KzQ/nhGPEOK4MlTvkOjnj/ldlxDIX7Kzp/X6bAuq1eJuZfvvkr8bIs/LFuDX5v/X ED2NNB0/Anx9/ykWm3IQhzVa1IjUvbMAXNx15SuTqLl04tnlgsu35/32k9Bckp3dp+YO y1ASRUiIQREgN3sSxR8Wgqm4dEpUOP4FB9izdK2B4qWxhhEd+imdXZzIJd1aykjgCwCs lA/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rLwkEROY; 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 y99si6868916ede.294.2020.11.09.05.44.20; Mon, 09 Nov 2020 05:44:44 -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=rLwkEROY; 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 S2387649AbgKINj2 (ORCPT + 99 others); Mon, 9 Nov 2020 08:39:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:56346 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730680AbgKINDl (ORCPT ); Mon, 9 Nov 2020 08:03:41 -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 BD37B2222B; Mon, 9 Nov 2020 13:03:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604926997; bh=iGi1A/HIjlPZYD+2SeqNGeJAXliQ5RfNBdSLrnNyclk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rLwkEROYtZT4OR8rHGtDBrrO/1pXa/qrrXmY3B7+/+vynfnWidfG+FU7Zn5B5Q43A MCJ9wvuTJu3qYrKv8gz6G2K3VAkmgtx2FC5+TxxXcZkNFA4sYNz1l2UJ5/nmm4yCnd 9E9u/EPGy5EGvI+eqkL0ymmDYbAaKRezXx8hnzmY= 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 4.9 048/117] leds: bcm6328, bcm6358: use devres LED registering function Date: Mon, 9 Nov 2020 13:54:34 +0100 Message-Id: <20201109125027.948402336@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201109125025.630721781@linuxfoundation.org> References: <20201109125025.630721781@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 @@ -336,7 +336,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 @@ -141,7 +141,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;