Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp4014782ybd; Tue, 25 Jun 2019 12:28:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRYU6Cp0n9JMJbhM+rIyMRTvryXAv0VxfYIdH2P0MOA7NfNOX/EEq1NpLD1DshgjBDNS4d X-Received: by 2002:a65:6403:: with SMTP id a3mr31524648pgv.7.1561490889948; Tue, 25 Jun 2019 12:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561490889; cv=none; d=google.com; s=arc-20160816; b=yQkcRVi8gJGNwSaf/zEbh+YbCKmAzkL1tVV4YYR4jnPIf0hIg1LiqFQjoMX31+jOLu 4HT8v28VRkv/CZjFdLW5YM5sOwJyyxSvUx7914lzh28i0MugMAZm/bftGt6xjB2AeaRF IFB69sOhC9fpllNbhiW7QeWN6tAT5bjJOvH3AErjxQJkV6lXoygk+qTzn4f/REMkF7T5 cnjwtd7q9KE/hZ/lT9uWBSetmCJv/TVbVKZ1VRp+1P+CIeROGet4pmhDl/2nGYjeKRae Tt+VtJwdexAbPQRUcLAJUrsqCy1QyGkll3xMWoCfBJ2oz5FOpCAYDloOrooVm4NRB7S6 r+JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xjvgqiqZzglCEryM8XBbJiMmioEThPc/Ew98mkOW+30=; b=Y1YTt18iqOKzR8P3pc+8k/oTm9LF8MjIdh5Ga7IArD1wD5tBFS0YDIuS9Y9D5TPnXx 02Q2jEgmPwZ0np8uT7uDVpdKJ0dZ/lfVob3RnMJZHYvaD9crl3UnGbkNVZBBbxyh+Wdr ki0WR5L0gheD+k9Pn7oxfqwY75aVCypVme2nNSRQ1UzkbkXbrHxanEwvh5ji79qDOuBD jtN1Atjkhv6Wq/RqOM9UzV7/tav4BisTs1CiM5Q5PBeGIsIcH6SO28pDHer7f+0gfb9c a+hVsZGoYc4m7M6+2Btj8vGnL0YYyV//0xRgiB5MT+3ulyUg7nafnpeNeDcbB3oe7CUE cLng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=dsz03gRN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11si1063297plm.390.2019.06.25.12.27.54; Tue, 25 Jun 2019 12:28:09 -0700 (PDT) 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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=dsz03gRN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731702AbfFYQfH (ORCPT + 99 others); Tue, 25 Jun 2019 12:35:07 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35789 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731422AbfFYQfG (ORCPT ); Tue, 25 Jun 2019 12:35:06 -0400 Received: by mail-wm1-f68.google.com with SMTP id c6so3660153wml.0 for ; Tue, 25 Jun 2019 09:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xjvgqiqZzglCEryM8XBbJiMmioEThPc/Ew98mkOW+30=; b=dsz03gRN+B8sj18/khuc/IOGJ4ZAac3MpDKb3Zv/Bc9PoYBZsScWcIBR66+WT13q4A tN8EW3Vfjzl0srOYa1HtJEj4YWDxKeLJeFxcOpAU1yqzULbgKdw7lI1k9uJYS2TLwLfq nJu10QxZk+xzeoc8TdS7m0YAZ+oQffTcRYbFO9YXz55433gHQs5zlWTN1V3cyKJa1Q2A iPJuT54NssEe53FbS36r8nVdcdRnBqTyep+QMieQHsg6JfL23Iqv4l0ggpRn13oHMR0p AZG9QARW/pNBZ52Cg4cBykzft5A+BRios2hbeleUvawVzlsiZYnAcBm99WZBoCSgvzcU PqsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xjvgqiqZzglCEryM8XBbJiMmioEThPc/Ew98mkOW+30=; b=iT+U46MlGAfz/s6FyubSEAxjc6PPSdasOr4IK4snznW6yLTGBbkY03ziTK7ZgtCtAN hjVH9zu+SyrTXDUUg5DuTYHraJUQeS7DmKvhqu/CViARpXs3qpJFvPyICboQsevhQUmp AMLbWqkhiWVCZh9ZGZyqB3go5cUMelttLWQKoUrZ/72Q8m13xiNlWRi+tkNpQhBOroLL Mky0lhsWpvDnoZHG69jADBylpyeCO9Ib7aeD8SAV+bgQ9NwM3z9HhSf8x+bw9AqnW853 TEtcOHwgjGKXmdk05FliKbARpNMozzIjwCjZmpRv9W3aVoovJ06NdANG0JSBJkFn/dmK lR8g== X-Gm-Message-State: APjAAAW8bOr4C+D1Gz4kawXGNe8OyDMa30LCaOsrGnUjhFHiz6HdvAdt s/FlI5qpNcvELB+HBZr2bm0gyw== X-Received: by 2002:a1c:c74a:: with SMTP id x71mr20501151wmf.121.1561480504153; Tue, 25 Jun 2019 09:35:04 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id g8sm2683795wme.20.2019.06.25.09.35.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jun 2019 09:35:03 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Lee Jones , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , David Lechner , Linus Walleij Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 10/12] fbdev: da8xx-fb: use devm_platform_ioremap_resource() Date: Tue, 25 Jun 2019 18:34:32 +0200 Message-Id: <20190625163434.13620-11-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190625163434.13620-1-brgl@bgdev.pl> References: <20190625163434.13620-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Shrink the code a bit by using the new helper wrapping the calls to platform_get_resource() and devm_ioremap_resource() together. Signed-off-by: Bartosz Golaszewski --- drivers/video/fbdev/da8xx-fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/da8xx-fb.c b/drivers/video/fbdev/da8xx-fb.c index 328de29c4933..4dda194d6b8f 100644 --- a/drivers/video/fbdev/da8xx-fb.c +++ b/drivers/video/fbdev/da8xx-fb.c @@ -1339,7 +1339,6 @@ static int fb_probe(struct platform_device *device) { struct da8xx_lcdc_platform_data *fb_pdata = dev_get_platdata(&device->dev); - struct resource *lcdc_regs; struct lcd_ctrl_config *lcd_cfg; struct fb_videomode *lcdc_info; struct fb_info *da8xx_fb_info; @@ -1357,8 +1356,7 @@ static int fb_probe(struct platform_device *device) if (lcdc_info == NULL) return -ENODEV; - lcdc_regs = platform_get_resource(device, IORESOURCE_MEM, 0); - da8xx_fb_reg_base = devm_ioremap_resource(&device->dev, lcdc_regs); + da8xx_fb_reg_base = devm_platform_ioremap_resource(device, 0); if (IS_ERR(da8xx_fb_reg_base)) return PTR_ERR(da8xx_fb_reg_base); -- 2.21.0