linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi: rspi: fix build error when CONFIG_OF is not set
@ 2014-02-03  1:43 Shimoda, Yoshihiro
  2014-02-03  8:47 ` Geert Uytterhoeven
       [not found] ` <52EEF452.4060205-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Shimoda, Yoshihiro @ 2014-02-03  1:43 UTC (permalink / raw)
  To: Mark Brown; +Cc: Geert Uytterhoeven, linux-spi-u79uwXL29TY76Z2rM5mHXA, SH-Linux

This patch fixes an issue that the following build error happens when
the CONFIG_OF is not set:

drivers/spi/spi-rspi.c: In function 'rspi_probe':
drivers/spi/spi-rspi.c:1203:26: error: 'rspi_of_match' undeclared (first use in this function)

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
---
 This patch is based on the latest origin/topic/rspi branch in the spi.git.

 drivers/spi/spi-rspi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c
index 34ad4bc..e5cfc3d 100644
--- a/drivers/spi/spi-rspi.c
+++ b/drivers/spi/spi-rspi.c
@@ -1164,6 +1164,7 @@ static int rspi_parse_dt(struct device *dev, struct spi_master *master)
 	return 0;
 }
 #else
+#define rspi_of_match	NULL
 static inline int rspi_parse_dt(struct device *dev, struct spi_master *master)
 {
 	return -EINVAL;
-- 
1.7.1
--
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] 6+ messages in thread

end of thread, other threads:[~2014-02-04  5:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-03  1:43 [PATCH] spi: rspi: fix build error when CONFIG_OF is not set Shimoda, Yoshihiro
2014-02-03  8:47 ` Geert Uytterhoeven
     [not found]   ` <alpine.DEB.2.02.1402030939520.25794-97SZ98TBZzA1xEWliksxXw@public.gmane.org>
2014-02-03 15:17     ` Mark Brown
2014-02-04  5:56     ` Shimoda, Yoshihiro
2014-02-03 21:45   ` Rob Herring
     [not found] ` <52EEF452.4060205-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2014-02-03 13:14   ` Mark Brown

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).