All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi/qspi: Fix return from mmap path
@ 2014-03-10  9:29 Sourav Poddar
       [not found] ` <1394443753-25773-1-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Sourav Poddar @ 2014-03-10  9:29 UTC (permalink / raw)
  To: broonie-QSEj5FYQhm4dnm+yROfE0A
  Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, Sourav Poddar

mmap resource requirement is only for memory mapped operations.
If the user does not populate mmap resource, dont call return,
instead we go on for normal spi mode operations.

Signed-off-by: Sourav Poddar <sourav.poddar-l0cyMroinI0@public.gmane.org>
---
 drivers/spi/spi-ti-qspi.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c
index 49ddfc7..6c211d1 100644
--- a/drivers/spi/spi-ti-qspi.c
+++ b/drivers/spi/spi-ti-qspi.c
@@ -461,7 +461,6 @@ static int ti_qspi_probe(struct platform_device *pdev)
 		if (res_mmap == NULL) {
 			dev_err(&pdev->dev,
 				"memory mapped resource not required\n");
-			return -ENODEV;
 		}
 	}
 
-- 
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

^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH] spi/qspi: Fix return from mmap path
@ 2014-03-10 10:30 Sourav Poddar
       [not found] ` <1394447443-9861-1-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Sourav Poddar @ 2014-03-10 10:30 UTC (permalink / raw)
  To: broonie-DgEjT+Ai2ygdnm+yROfE0A
  Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, Sourav Poddar

mmap resource requirement is only for memory mapped operations.
If the user does not populate mmap resource, dont call return,
instead we go on for normal spi mode operations.

Signed-off-by: Sourav Poddar <sourav.poddar-l0cyMroinI0@public.gmane.org>
---
 drivers/spi/spi-ti-qspi.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c
index 49ddfc7..6c211d1 100644
--- a/drivers/spi/spi-ti-qspi.c
+++ b/drivers/spi/spi-ti-qspi.c
@@ -461,7 +461,6 @@ static int ti_qspi_probe(struct platform_device *pdev)
 		if (res_mmap == NULL) {
 			dev_err(&pdev->dev,
 				"memory mapped resource not required\n");
-			return -ENODEV;
 		}
 	}
 
-- 
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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-03-10 11:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-10  9:29 [PATCH] spi/qspi: Fix return from mmap path Sourav Poddar
     [not found] ` <1394443753-25773-1-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
2014-03-10  9:49   ` sourav
     [not found]     ` <531D8AA1.305-l0cyMroinI0@public.gmane.org>
2014-03-10 10:15       ` Mark Brown
     [not found]         ` <20140310101556.GR28112-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-03-10 10:20           ` sourav
     [not found]             ` <531D91FA.3070408-l0cyMroinI0@public.gmane.org>
2014-03-10 10:28               ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2014-03-10 10:30 Sourav Poddar
     [not found] ` <1394447443-9861-1-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
2014-03-10 11:12   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.