From: Varka Bhadram <varkabhadram-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Varka Bhadram <varkab-If5XQcfNmg0@public.gmane.org>
Subject: [PATCH spi 1/7] spi-tegra20-slink: remove duplicate check on resource
Date: Tue, 21 Oct 2014 15:35:44 +0530 [thread overview]
Message-ID: <1413885950-24208-1-git-send-email-varkab@cdac.in> (raw)
Sanity check on resource happening with devm_ioremap_resource().
Signed-off-by: Varka Bhadram <varkab-If5XQcfNmg0@public.gmane.org>
---
drivers/spi/spi-tegra20-slink.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c
index a829563..59a85cc 100644
--- a/drivers/spi/spi-tegra20-slink.c
+++ b/drivers/spi/spi-tegra20-slink.c
@@ -1154,18 +1154,14 @@ static int tegra_slink_probe(struct platform_device *pdev)
spin_lock_init(&tspi->lock);
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!r) {
- dev_err(&pdev->dev, "No IO memory resource\n");
- ret = -ENODEV;
- goto exit_free_master;
- }
- tspi->phys = r->start;
tspi->base = devm_ioremap_resource(&pdev->dev, r);
if (IS_ERR(tspi->base)) {
ret = PTR_ERR(tspi->base);
goto exit_free_master;
}
+ tspi->phys = r->start;
+
spi_irq = platform_get_irq(pdev, 0);
tspi->irq = spi_irq;
ret = request_threaded_irq(tspi->irq, tegra_slink_isr,
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2014-10-21 10:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-21 10:05 Varka Bhadram [this message]
[not found] ` <1413885950-24208-1-git-send-email-varkab-If5XQcfNmg0@public.gmane.org>
2014-10-21 10:05 ` [PATCH spi 2/7] spi-tegra20-sflash: remove duplicate check on resource Varka Bhadram
2014-10-21 10:05 ` [PATCH spi 3/7] spi-sirf: " Varka Bhadram
2014-10-21 10:05 ` [PATCH spi 4/7] spi-s3c64xx: " Varka Bhadram
2014-10-21 10:05 ` [PATCH spi 5/7] spi-omap2-mcspi: " Varka Bhadram
2014-10-21 10:05 ` [PATCH spi 6/7] spi-mxs: " Varka Bhadram
2014-10-21 10:05 ` [PATCH spi 7/7] spi-ep93xx: " Varka Bhadram
2014-10-28 4:59 ` [PATCH spi 1/7] spi-tegra20-slink: " Varka Bhadram
[not found] ` <544F22C8.8040106-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-25 14:08 ` Mark Brown
[not found] ` <20150525140806.GX21391-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-05-25 14:43 ` Varka Bhadram
[not found] ` <55633524.2060704-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-25 17:33 ` Mark Brown
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=1413885950-24208-1-git-send-email-varkab@cdac.in \
--to=varkabhadram-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=varkab-If5XQcfNmg0@public.gmane.org \
/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).