From patchwork Wed Apr 10 20:59:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Silviu-Mihai Popescu X-Patchwork-Id: 2423311 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 37A9DDF2E5 for ; Wed, 10 Apr 2013 20:59:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935212Ab3DJU7n (ORCPT ); Wed, 10 Apr 2013 16:59:43 -0400 Received: from mail-ee0-f45.google.com ([74.125.83.45]:51962 "EHLO mail-ee0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760339Ab3DJU7a (ORCPT ); Wed, 10 Apr 2013 16:59:30 -0400 Received: by mail-ee0-f45.google.com with SMTP id c50so455581eek.32 for ; Wed, 10 Apr 2013 13:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=ygmEPiZsnz9a2iSuIqrcC1exxcPz5+I2JVOMRWh76EY=; b=CtkvbDmR7Ker/Y3SRdbkFlQZLyux9JhXSis4unG1lyHDABr/8cp3c0E0k0HSdrmtbU jbVVcVhp1hTbGZK5HzXVkvGSKqOLpYRYd8rpmlH2nV/cfTwGGHKNmHIV8A2nbRaw7VfY WhRCJo6F72r+AqaTEBGV2d1SAlB8uZrTbB86LL/6a+t7tn3BQdZlom7TSi/5ppgLzyAL KFVfG+Y3Z6NGzyNsbdx2O56NrXKkFHM823rEqhp5T4fsoUcLMoQtqAWxALwPv6XrN5An Xj7swkOqG6+JVvW1c2U8ieRjTSBuaD3ZjWCJCThlYazwqq5JfMY2E887Tind8ALZt/cl PH/w== X-Received: by 10.15.32.142 with SMTP id a14mr9388502eev.22.1365627568936; Wed, 10 Apr 2013 13:59:28 -0700 (PDT) Received: from localhost.localdomain (p5.eregie.pub.ro. [141.85.0.105]) by mx.google.com with ESMTPS id t4sm2069117eel.0.2013.04.10.13.59.27 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 10 Apr 2013 13:59:28 -0700 (PDT) From: Silviu-Mihai Popescu To: linux-media@vger.kernel.org Cc: Guennadi Liakhovetski , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Silviu-Mihai Popescu Subject: [PATCH] drivers: media: platform: convert to devm_ioremap_resource() Date: Wed, 10 Apr 2013 23:59:25 +0300 Message-Id: <1365627565-17401-1-git-send-email-silviupopescu1990@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Convert all uses of devm_request_and_ioremap() to the newly introduced devm_ioremap_resource() which provides more consistent error handling. Signed-off-by: Silviu-Mihai Popescu --- drivers/media/platform/sh_veu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/sh_veu.c b/drivers/media/platform/sh_veu.c index cb54c69..911f562 100644 --- a/drivers/media/platform/sh_veu.c +++ b/drivers/media/platform/sh_veu.c @@ -1164,9 +1164,9 @@ static int sh_veu_probe(struct platform_device *pdev) veu->is_2h = resource_size(reg_res) == 0x22c; - veu->base = devm_request_and_ioremap(&pdev->dev, reg_res); - if (!veu->base) - return -ENOMEM; + veu->base = devm_ioremap_resource(&pdev->dev, reg_res); + if (IS_ERR(veu->base)) + return PTR_ERR(veu->base); ret = devm_request_threaded_irq(&pdev->dev, irq, sh_veu_isr, sh_veu_bh, 0, "veu", veu);