From patchwork Mon Jun 10 11:35:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 17719 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f72.google.com (mail-vb0-f72.google.com [209.85.212.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9369025DF9 for ; Mon, 10 Jun 2013 11:49:57 +0000 (UTC) Received: by mail-vb0-f72.google.com with SMTP id p12sf5473650vbe.3 for ; Mon, 10 Jun 2013 04:49:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=gjRsnpv+3zMJgh+sr8gK9BUH17VZErB8rjEambZQ/gU=; b=ScVJ9GyJqQZek5Ks7Vq+YkgYGY6qwDriKvmCBxFRa2+lma7Z2BzqoQ6X1ZcNA3VxdK rTbw2IMj4/ossWFxkKb3egquLI744pFtWEX2bJ4PwK57UWuAgQpnvtnH17y8Tn6o2WTK lIoo9atSeDz6XtzWDCFS+klcDsBOyIWUTL3Lgx5Sf8le3yA7C/ue4cnlyIH9edQA9+VW FsJjAz86j0gk4ynnkpWy+4DdhzYrhSZeSbUIObta8mfKNWDMCFhnSH0h4iXJiOF9pW6a V3LgeQ9nP3DqGxcoZ4V7HwMQypvv9+fiFJlgI1mf16OEKfk43+nvAJ2YA37iQFApvQZN DPlQ== X-Received: by 10.224.42.141 with SMTP id s13mr8268714qae.3.1370864996825; Mon, 10 Jun 2013 04:49:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.13.106 with SMTP id g10ls2565924qec.39.gmail; Mon, 10 Jun 2013 04:49:56 -0700 (PDT) X-Received: by 10.220.112.210 with SMTP id x18mr2448254vcp.0.1370864996624; Mon, 10 Jun 2013 04:49:56 -0700 (PDT) Received: from mail-ve0-x22f.google.com (mail-ve0-x22f.google.com [2607:f8b0:400c:c01::22f]) by mx.google.com with ESMTPS id p20si4685844veh.30.2013.06.10.04.49.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:49:56 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22f is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::22f; Received: by mail-ve0-f175.google.com with SMTP id da11so4629073veb.20 for ; Mon, 10 Jun 2013 04:49:56 -0700 (PDT) X-Received: by 10.220.91.9 with SMTP id k9mr5362846vcm.41.1370864996517; Mon, 10 Jun 2013 04:49:56 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.10.206 with SMTP id pb14csp64951vcb; Mon, 10 Jun 2013 04:49:56 -0700 (PDT) X-Received: by 10.66.155.39 with SMTP id vt7mr13495098pab.99.1370864995703; Mon, 10 Jun 2013 04:49:55 -0700 (PDT) Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [2607:f8b0:400e:c03::229]) by mx.google.com with ESMTPS id ra8si6818830pab.120.2013.06.10.04.49.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:49:55 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c03::229 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=2607:f8b0:400e:c03::229; Received: by mail-pa0-f41.google.com with SMTP id bj3so3224625pad.28 for ; Mon, 10 Jun 2013 04:49:55 -0700 (PDT) X-Received: by 10.68.241.135 with SMTP id wi7mr9632147pbc.88.1370864995230; Mon, 10 Jun 2013 04:49:55 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id rn7sm10242037pbc.12.2013.06.10.04.49.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:49:54 -0700 (PDT) From: Tushar Behera To: linux-kernel@vger.kernel.org Cc: thierry.reding@gmail.com, patches@linaro.org, Vinod Koul , Dan Williams Subject: [PATCH 02/15] sudmac: Convert to use devm_ioremap_resource Date: Mon, 10 Jun 2013 17:05:00 +0530 Message-Id: <1370864113-17895-3-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1370864113-17895-1-git-send-email-tushar.behera@linaro.org> References: <1370864113-17895-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQlCXJOJsvXk25I+61zE0rNMpzFaKO1midEkeRPq0UGMmtPx9JvMDc93wKTnVdk0IKj9pGHN X-Original-Sender: tushar.behera@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22f is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()") introduced devm_ioremap_resource() and deprecated the use of devm_request_and_ioremap(). Signed-off-by: Tushar Behera CC: Vinod Koul CC: Dan Williams --- drivers/dma/sh/sudmac.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/sh/sudmac.c b/drivers/dma/sh/sudmac.c index e7c94bb..0a81e30 100644 --- a/drivers/dma/sh/sudmac.c +++ b/drivers/dma/sh/sudmac.c @@ -360,9 +360,9 @@ static int sudmac_probe(struct platform_device *pdev) dma_dev = &su_dev->shdma_dev.dma_dev; - su_dev->chan_reg = devm_request_and_ioremap(&pdev->dev, chan); - if (!su_dev->chan_reg) - return err; + su_dev->chan_reg = devm_ioremap_resource(&pdev->dev, chan); + if (IS_ERR(su_dev->chan_reg)) + return PTR_ERR(su_dev->chan_reg); dma_cap_set(DMA_SLAVE, dma_dev->cap_mask);