[U-Boot] [PATCH] drivers: spi: Remove duplicate .probe method

suniel.spartan at gmail.com suniel.spartan at gmail.com
Fri Apr 28 19:02:11 UTC 2017


From: Suniel Mahesh <suniel.spartan at gmail.com>

.probe method has been assigned twice when declaring a
a driver with U_BOOT_DRIVER(). Removed one of them.

Signed-off-by: Suniel Mahesh <suniel.spartan at gmail.com>
---
Note:
Tested on latest u-boot mainline tree and maintainers u-boot-spi
tree, no build issues.
---
 drivers/spi/omap3_spi.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c
index 8a89450..76d376a 100644
--- a/drivers/spi/omap3_spi.c
+++ b/drivers/spi/omap3_spi.c
@@ -692,6 +692,5 @@ U_BOOT_DRIVER(omap3_spi) = {
 	.probe = omap3_spi_probe,
 	.ops    = &omap3_spi_ops,
 	.priv_auto_alloc_size = sizeof(struct omap3_spi_priv),
-	.probe = omap3_spi_probe,
 };
 #endif
-- 
1.9.1



More information about the U-Boot mailing list