Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751575AbeAPRDh (ORCPT + 1 other); Tue, 16 Jan 2018 12:03:37 -0500 Received: from smtp.domeneshop.no ([194.63.252.55]:37724 "EHLO smtp.domeneshop.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751101AbeAPRDf (ORCPT ); Tue, 16 Jan 2018 12:03:35 -0500 Subject: Re: [PATCH v16 06/10] drm/tinydrm: Call devres version of of_find_backlight To: Meghana Madhyastha , Lee Jones , Daniel Thompson , Jingoo Han , Thierry Reding , Tomi Valkeinen , Daniel Vetter , Sean Paul , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= Message-ID: <2b052475-61cf-f69e-5cdd-d5506ca3dc17@tronnes.org> Date: Tue, 16 Jan 2018 18:03:32 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Den 16.01.2018 11.34, skrev Meghana Madhyastha: > Call devm_of_find_backlight (the devres version) instead of > of_find_backlight. > > Signed-off-by: Meghana Madhyastha > --- > drivers/gpu/drm/tinydrm/mi0283qt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/tinydrm/mi0283qt.c b/drivers/gpu/drm/tinydrm/mi0283qt.c > index 3f9065fb5..4d8650bdc 100644 > --- a/drivers/gpu/drm/tinydrm/mi0283qt.c > +++ b/drivers/gpu/drm/tinydrm/mi0283qt.c > @@ -191,7 +191,7 @@ static int mi0283qt_probe(struct spi_device *spi) > if (IS_ERR(mipi->regulator)) > return PTR_ERR(mipi->regulator); > > - mipi->backlight = of_find_backlight(dev); > + mipi->backlight = devm_of_find_backlight(dev); > if (IS_ERR(mipi->backlight)) > return PTR_ERR(mipi->backlight); > You've missed st7735r. With that fixed: Reviewed-by: Noralf Trønnes