Received: by 10.223.176.46 with SMTP id f43csp972548wra; Wed, 24 Jan 2018 08:39:20 -0800 (PST) X-Google-Smtp-Source: AH8x224xyBs+3ueBFtUWkvm18gRBVFAFR8nlYlxY/AIx+KolbCm0dI5/onbmslGkLbb2QoIc2Lfx X-Received: by 10.99.148.17 with SMTP id m17mr10493979pge.367.1516811960137; Wed, 24 Jan 2018 08:39:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516811960; cv=none; d=google.com; s=arc-20160816; b=yt9H/ATzxKhTMIvGNIL5E2wGTDZuY2opxxbiM4kYRWwED6DAnlxhFyBevQO7bR2Y4j TnIs8ZXwMpD4m6l5HYZJi79KLduqLEF2J9ZvnS+WFNvORZ0lJKRuqzfMv7JnIY8znksZ 4eYkuL/HLGt/SyX9qX6W2yxgp/m38njfG9fr96m3fABL49dbxhVLKVre6jP4oS4EBeGS QSxUs+L+GiT7OncCl8llyxWxdDch0jwR6OLYzwkp9cblRF9rHFext84GCFaTKJnd67d4 vTa/1ZL974r1yxrYJE/XwdpyBvJE1esiwLrZIPtl/6XbbYjuvydYe2ynuAIlnhgxGwWj E8rA== 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=2NgPNLKCQWk0Y4jMD9F17XNKN9XNY2dWhvQ3LnrqcYI=; b=cBD021rorIx/u6xy0cq5Hll363aIV+j5LMOyEfwS79rMzddvsEj+Ia1mcwSznvBLzQ 7g378EBhpacpKwmwV9BzrcETNWzC2fZF/YPgz2jSCbHHOGMv2V8DX+30YC1pgHldgM+f NlPg0aLKXETO5Qwf5Mj/z/imI113W3rL/C45T05jFmuTPYaGqMihk6jagKBIpQAL0U+l RFimUu9SHaomNu5P8GTF8u/obL90m3LL+G+a8Vm66HEZHDGvr5svJVBlXbSTLzreWKgi bQXnpHw8Ry1S/EwlVpHNYmY+/TtM/gCr2uNgqmWC0myGmqKz61z4jWTHvwCJw5da8fEi NyIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gmEC/1xb; 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 x189si339296pgd.187.2018.01.24.08.39.06; Wed, 24 Jan 2018 08:39:20 -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=gmEC/1xb; 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 S934389AbeAXQiG (ORCPT + 99 others); Wed, 24 Jan 2018 11:38:06 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:46932 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934225AbeAXQiD (ORCPT ); Wed, 24 Jan 2018 11:38:03 -0500 Received: by mail-pf0-f195.google.com with SMTP id y5so3474015pff.13 for ; Wed, 24 Jan 2018 08:38:03 -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=2NgPNLKCQWk0Y4jMD9F17XNKN9XNY2dWhvQ3LnrqcYI=; b=gmEC/1xbYdePKgQeiaCehVU2Khjur3oKnhDzqfSLGa7wlCHUQDm7sUV/HuQjy7nk5j fVxsKyIb4wSJPVzSgjVlo1g4rB6ar9CxTd+D+bgegLORmBs3BCVrUNEV5QqqdjmcdOPb A8m/gidJ3mZb96MiGHT4iQyNKj37KSSSP1aLRMZSVZPKpaNbTJgWTZKuyTdXYXPNIEe+ QvEGOtQ1o5v9yvlpVYHmuttj1V8Ey7a9e4K61OjD+JIijF8yiRsVrt2F5OuDXIpj5l80 4xHFaF8F6vCS1v2nmQfG97VgunRCSDNgF1E+a7jQA6GyVLJ7EUPpHRSyTgJxv4rxpoIh LHsg== 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=2NgPNLKCQWk0Y4jMD9F17XNKN9XNY2dWhvQ3LnrqcYI=; b=UD5SqAltVo10nxDGDnP1gVnW2TyfSQjh42tkX2dtOVHuus8b97xCxOrVBu2ms9H9cG V3bbQsA1aTVkza63U+FgMOUReX4ANJ+MjD9BDH3ZGnkCr/tOSiLUf9pI1QjdMY0CrUXx qF5uFzgSAKg2xIv5uag/1rvdrSx2oOZOhb006LnJ41gOaxjwedOfAHuFRgvhwRehMj8R l6SusbdVpcSH4chpGqzsQROcOVavI4rpBtdxAdZUdhr1C+EgAkr+YoSbPtnnNnnOeHO4 4iuokityQfrQueJcLUayrokqFs9gf7nlJLGxNCDz+9M+TzMcdwTaO6lx6yZLiB/Ze1er zTMQ== X-Gm-Message-State: AKwxytcDX5sc2VjJohWIsGxWce7uy7L1h+/gbeAdtMXmRmncPceBv2CB OpfNhlq3Vs107qLEqQkb73c= X-Received: by 10.98.6.130 with SMTP id 124mr13558544pfg.117.1516811882841; Wed, 24 Jan 2018 08:38:02 -0800 (PST) Received: from raspberrypi ([122.172.61.122]) by smtp.gmail.com with ESMTPSA id n82sm12624850pfa.45.2018.01.24.08.37.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jan 2018 08:38:01 -0800 (PST) Date: Wed, 24 Jan 2018 16:37:56 +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 v19 06/10] drm/tinydrm: Call devres version of of_find_backlight Message-ID: <244cd4d567cb3944a8cb7633715ffc8ac4e1ce83.1516810725.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. Reviewed-by: Noralf Tr?nnes Reviewed-by: Sean Paul Signed-off-by: Meghana Madhyastha --- 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