aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/pxa2xx_ssp.h1
-rw-r--r--include/linux/spi/spi.h6
2 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/pxa2xx_ssp.h b/include/linux/pxa2xx_ssp.h
index 92273776bce6..c2f2574ff61c 100644
--- a/include/linux/pxa2xx_ssp.h
+++ b/include/linux/pxa2xx_ssp.h
@@ -198,6 +198,7 @@ enum pxa_ssp_type {
198 LPSS_LPT_SSP, /* Keep LPSS types sorted with lpss_platforms[] */ 198 LPSS_LPT_SSP, /* Keep LPSS types sorted with lpss_platforms[] */
199 LPSS_BYT_SSP, 199 LPSS_BYT_SSP,
200 LPSS_SPT_SSP, 200 LPSS_SPT_SSP,
201 LPSS_BXT_SSP,
201}; 202};
202 203
203struct ssp_device { 204struct ssp_device {
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index 635bff60eda5..cce80e6dc7d1 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -254,7 +254,7 @@ static inline struct spi_driver *to_spi_driver(struct device_driver *drv)
254 return drv ? container_of(drv, struct spi_driver, driver) : NULL; 254 return drv ? container_of(drv, struct spi_driver, driver) : NULL;
255} 255}
256 256
257extern int spi_register_driver(struct spi_driver *sdrv); 257extern int __spi_register_driver(struct module *owner, struct spi_driver *sdrv);
258 258
259/** 259/**
260 * spi_unregister_driver - reverse effect of spi_register_driver 260 * spi_unregister_driver - reverse effect of spi_register_driver
@@ -267,6 +267,10 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv)
267 driver_unregister(&sdrv->driver); 267 driver_unregister(&sdrv->driver);
268} 268}
269 269
270/* use a define to avoid include chaining to get THIS_MODULE */
271#define spi_register_driver(driver) \
272 __spi_register_driver(THIS_MODULE, driver)
273
270/** 274/**
271 * module_spi_driver() - Helper macro for registering a SPI driver 275 * module_spi_driver() - Helper macro for registering a SPI driver
272 * @__spi_driver: spi_driver struct 276 * @__spi_driver: spi_driver struct