From: Philipp Zabel <p.zabel@pengutronix.de>
To: Fabio Estevam <festevam@gmail.com>
Cc: k.debski@samsung.com, m.chehab@samsung.com,
kernel@pengutronix.de, linux-media@vger.kernel.org,
Fabio Estevam <fabio.estevam@freescale.com>
Subject: Re: [PATCH 2/2] [media] coda: No need to check the return value of platform_get_resource()
Date: Mon, 22 Jul 2013 10:10:08 +0200 [thread overview]
Message-ID: <1374480608.4355.6.camel@pizza.hi.pengutronix.de> (raw)
In-Reply-To: <1374346129-12907-2-git-send-email-festevam@gmail.com>
Am Samstag, den 20.07.2013, 15:48 -0300 schrieb Fabio Estevam:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> When using devm_ioremap_resource(), we do not need to check the return value of
> platform_get_resource(), so just remove it.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> drivers/media/platform/coda.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c
> index dd76228..236385f 100644
> --- a/drivers/media/platform/coda.c
> +++ b/drivers/media/platform/coda.c
> @@ -2038,11 +2038,6 @@ static int coda_probe(struct platform_device *pdev)
>
> /* Get memory for physical registers */
> res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> - if (res == NULL) {
> - dev_err(&pdev->dev, "failed to get memory region resource\n");
> - return -ENOENT;
> - }
> -
> dev->regs_base = devm_ioremap_resource(&pdev->dev, res);
> if (IS_ERR(dev->regs_base))
> return PTR_ERR(dev->regs_base);
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
regards
Philipp
next prev parent reply other threads:[~2013-07-22 8:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-20 18:48 [PATCH 1/2] [media] coda: Check the return value from clk_prepare_enable() Fabio Estevam
2013-07-20 18:48 ` [PATCH 2/2] [media] coda: No need to check the return value of platform_get_resource() Fabio Estevam
2013-07-22 8:10 ` Philipp Zabel [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-07-20 19:10 [PATCH v2 1/2] [media] coda: Check the return value from clk_prepare_enable() Fabio Estevam
2013-07-20 19:10 ` [PATCH 2/2] [media] coda: No need to check the return value of platform_get_resource() Fabio Estevam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1374480608.4355.6.camel@pizza.hi.pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=fabio.estevam@freescale.com \
--cc=festevam@gmail.com \
--cc=k.debski@samsung.com \
--cc=kernel@pengutronix.de \
--cc=linux-media@vger.kernel.org \
--cc=m.chehab@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).