Skip to contentSkip to conversation

drivers: Drop dummy_porbe()

PATCH Applied Andrey Smirnov 3 participants 4 messages Feb 26, 2019 – Feb 27, 2019 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: Drop dummy_porbe()

Drop dummy_porbe() due to lack of users in the tree.

---
 drivers/base/driver.c | 6 ------
 include/driver.h      | 3 ---
 2 files changed, 9 deletions(-)
drivers/base/driver.c +0 -6
index 1fd6bbc01..eec2a2d8a 100644
@@ -439,12 +439,6 @@ int generic_memmap_ro(struct cdev *cdev, void **map, int flags)
 	return generic_memmap_rw(cdev, map, flags);
 }
 
-int dummy_probe(struct device_d *dev)
-{
-	return 0;
-}
-EXPORT_SYMBOL(dummy_probe);
-
 /**
  * dev_set_name - set a device name
  * @dev: device
include/driver.h +0 -3
index 0ed830d29..26c447015 100644
@@ -353,9 +353,6 @@ struct cdev;
 ssize_t mem_read(struct cdev *cdev, void *buf, size_t count, loff_t offset, ulong flags);
 ssize_t mem_write(struct cdev *cdev, const void *buf, size_t count, loff_t offset, ulong flags);
 
-/* Use this if you have nothing to do in your drivers probe function */
-int dummy_probe(struct device_d *);
-
 int generic_memmap_ro(struct cdev *dev, void **map, int flags);
 int generic_memmap_rw(struct cdev *dev, void **map, int flags);
 
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 7 lines · Andrey Smirnov

Drop dummy_porbe() due to lack of users in the tree.

---
 drivers/base/driver.c | 6 ------
 include/driver.h      | 3 ---
 2 files changed, 9 deletions(-)

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw
In reply to Andrey Smirnov

$Subject ~= s/porbe/probe/

Best regards
Uwe

Signature · 7 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw
Quoted 1 line · Uwe Kleine-König

$Subject ~= s/porbe/probe/

Yes, I fixed that.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox