aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2015-03-23 17:29:58 -0400
committerPeter Huewe <peterhuewe@gmx.de>2015-03-26 21:50:43 -0400
commit1018bc268864b20c1ae7b0bc5c5c396ee6d33fe3 (patch)
treed8e580ad1b18f8a17710f4e239b2349cc9c07f19
parent7216ebc51bdd62517be6878dd37555ff428a80c9 (diff)
tpm/st33zp24/spi: Add missing device table for spi phy.
MODULE_DEVICE_TABLE is missing in spi phy in case CONFIG_OF is not set. Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
-rw-r--r--drivers/char/tpm/st33zp24/spi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/char/tpm/st33zp24/spi.c b/drivers/char/tpm/st33zp24/spi.c
index 7f4a5a46f0df..f0184a1b0c1c 100644
--- a/drivers/char/tpm/st33zp24/spi.c
+++ b/drivers/char/tpm/st33zp24/spi.c
@@ -362,6 +362,12 @@ static int tpm_st33_spi_remove(struct spi_device *dev)
362 return st33zp24_remove(chip); 362 return st33zp24_remove(chip);
363} 363}
364 364
365static const struct spi_device_id st33zp24_spi_id[] = {
366 {TPM_ST33_SPI, 0},
367 {}
368};
369MODULE_DEVICE_TABLE(spi, st33zp24_spi_id);
370
365#ifdef CONFIG_OF 371#ifdef CONFIG_OF
366static const struct of_device_id of_st33zp24_spi_match[] = { 372static const struct of_device_id of_st33zp24_spi_match[] = {
367 { .compatible = "st,st33zp24-spi", }, 373 { .compatible = "st,st33zp24-spi", },
@@ -382,6 +388,7 @@ static struct spi_driver tpm_st33_spi_driver = {
382 }, 388 },
383 .probe = tpm_st33_spi_probe, 389 .probe = tpm_st33_spi_probe,
384 .remove = tpm_st33_spi_remove, 390 .remove = tpm_st33_spi_remove,
391 .id_table = st33zp24_spi_id,
385}; 392};
386 393
387module_spi_driver(tpm_st33_spi_driver); 394module_spi_driver(tpm_st33_spi_driver);