Received: by 10.223.176.46 with SMTP id f43csp2998482wra; Mon, 22 Jan 2018 06:54:49 -0800 (PST) X-Google-Smtp-Source: AH8x225EkSYLfGeozxLMpI1WopTwyEQtUyDHn0PVx/IxQNQk7aTcFEeU74MPh5+JAdxnnExn3GhZ X-Received: by 2002:a17:902:2f41:: with SMTP id s59-v6mr3724029plb.422.1516632889137; Mon, 22 Jan 2018 06:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516632889; cv=none; d=google.com; s=arc-20160816; b=1BF9Ct2VAgyoelS2jlYcAJYAGe5HcSchlfB0FC076QHda0dvOy/OKEYAHvf3Rskput RMD/l/zflSrXCMABUs9yTmbMdohD90bELCDQofceAU5wYTXiL9tSacv2uM1ikssuQXxN UD6K17l9LLuVxV17iYihKv89WzmtMhg+NYmoamD49pE+xmZLO040rZgGrvcCzYWDMMMZ tlqoSAdEbWXMJtxEhOO+0irwk1QV1MG+8Nsgo58+BI1vfKi6eHgoqq3uusxkf5JHVEXw mH7xf/ABOVhmGJBzGkBqPN9sP3nKqDNDnrqQqMH7Y2Lp81t3wvdOYTTt6sXCD4A1X+bE ocHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature :arc-authentication-results; bh=G4H7U2p0WwWMBZMiVSCBk+Oi4cUtUfcigRWGaNDhnVc=; b=I3T7AUpR68JGbGCwmaWMLY7dKq25yPB6N6qN8yjtUReRRsoIhz5+Iop+MjHlhisUI6 IN+tRgiUHJ8ms03MWkPhbTbGoWCgarRT+9pT3+XBUHT+kjlH+WyyLHAAXdQ/I8ofp7EO bwOkzhDIYTfVEB4W4RA9hwylN+bUjhDlD8Sv3R7qok8Eo1HvX6dtv3RY9qQq1Xmb7QfM vgLBfCNr8PjlKWIEqQmkHDHGLXPs/BsE6siLAH5J2w9Cau9Tbw6IWrS4sSy8dpjh14hi T2oOEf7cbl+caB5r9voaHHlQEqzDhhxrV37Tz/DQAlv1Ul8k3GIO4SPamwYsiomKQRnm wfYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pDFrT/1t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si295420pfj.60.2018.01.22.06.54.34; Mon, 22 Jan 2018 06:54:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pDFrT/1t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751247AbeAVOxl (ORCPT + 99 others); Mon, 22 Jan 2018 09:53:41 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:41909 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750848AbeAVOxj (ORCPT ); Mon, 22 Jan 2018 09:53:39 -0500 Received: by mail-pg0-f66.google.com with SMTP id 136so7263160pgd.8 for ; Mon, 22 Jan 2018 06:53:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=G4H7U2p0WwWMBZMiVSCBk+Oi4cUtUfcigRWGaNDhnVc=; b=pDFrT/1tjifVwWZ7X5XvJKDkg2gddRzc/X2ybbO3cjcKLPZcLYiIbu71OOyw1Fe86J eg+n7i2mQmZMzyEDBQeF/hBhZaB/f4uLJZ8fBwNMxbOc3CwnJtNDoU/U/HuT6ESH5zd1 M3Azuty20NOxXLrXKb38w+qV4OMpP+Y8AIq+YS+Q5J0VnaQMRKqbFdbn97tj4RuFnrfV DmTrq0JagRhQyc9IzIjoIs8cBBoXbhRjTVkkmWyRxG6YYuarwnXMIgdRpzNUGRUafucp NvWo8uPdpREpu+N3cUu8RT6QvMMfiXDeRA35aLDJHnjrZt9p0Ocm6mCg6dIxPA3p+G0h MfQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=G4H7U2p0WwWMBZMiVSCBk+Oi4cUtUfcigRWGaNDhnVc=; b=YmHGNBP8RJSsbSVkWAMw8gAHfkdgBya4b8OurkJyZ+3BtKf8pwqxO8nK9MDj0PFWjU bFbGU68fnL31dl3bQ3KZLp6x4bmDeYFrX9dI/dtAAJO6OLZOMoNfM3wcpgf0Lxd6hVCm 3EtOU9P/ayK/2LWbVpk2e8MYLbygqg9C5MJ4yCs7abMuc21YK85QeDBdV/EfKlob6j80 mY05YYV/nVmJBj/vgj1E9bHdiwwL+q7U3I6bmeaHofx2ZeLzmFwuYvZFsPdNPUl3ceLF 32XBYnDZIo/fFvWAWcxHEJfVJH8PNaRdgM+1NbfFJQ46NL5vha4YNsbHRjMX/kNeg0CU Nm2Q== X-Gm-Message-State: AKwxytfqGawPN23h1Puq9i8UCbzSBoKdQaSv4kMFwzwZG+3TXSM4V69y ebkEslxLGNtci21/3JGirsg= X-Received: by 10.99.116.88 with SMTP id e24mr7232903pgn.279.1516632819334; Mon, 22 Jan 2018 06:53:39 -0800 (PST) Received: from raspberrypi ([122.171.92.137]) by smtp.gmail.com with ESMTPSA id m24sm1212469pfj.184.2018.01.22.06.53.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jan 2018 06:53:38 -0800 (PST) Date: Mon, 22 Jan 2018 14:53:33 +0000 From: Meghana Madhyastha To: Lee Jones , Daniel Thompson , Jingoo Han , Thierry Reding , Noralf =?iso-8859-1?Q?Tr=F8nnes?= , Tomi Valkeinen , Daniel Vetter , Sean Paul , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v18 06/10] drm/tinydrm: Call devres version of of_find_backlight Message-ID: <244cd4d567cb3944a8cb7633715ffc8ac4e1ce83.1516632388.git.meghana.madhyastha@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Call devm_of_find_backlight (the devres version) instead of of_find_backlight. Signed-off-by: Meghana Madhyastha --- Reviewed-by: Noralf Tr?nnes Reviewed-by: Sean Paul drivers/gpu/drm/tinydrm/mi0283qt.c | 2 +- drivers/gpu/drm/tinydrm/st7735r.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tinydrm/mi0283qt.c b/drivers/gpu/drm/tinydrm/mi0283qt.c index a8aafce36..d8ed6e6f8 100644 --- a/drivers/gpu/drm/tinydrm/mi0283qt.c +++ b/drivers/gpu/drm/tinydrm/mi0283qt.c @@ -196,7 +196,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); diff --git a/drivers/gpu/drm/tinydrm/st7735r.c b/drivers/gpu/drm/tinydrm/st7735r.c index 2e6b7b8ec..67d197ecf 100644 --- a/drivers/gpu/drm/tinydrm/st7735r.c +++ b/drivers/gpu/drm/tinydrm/st7735r.c @@ -164,7 +164,7 @@ static int st7735r_probe(struct spi_device *spi) return PTR_ERR(dc); } - mipi->backlight = of_find_backlight(dev); + mipi->backlight = devm_of_find_backlight(dev); if (IS_ERR(mipi->backlight)) return PTR_ERR(mipi->backlight); -- 2.11.0