diff options
Diffstat (limited to 'drivers/mtd/mtd-uclass.c')
-rw-r--r-- | drivers/mtd/mtd-uclass.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/mtd/mtd-uclass.c b/drivers/mtd/mtd-uclass.c index 5418217431..cf749b4a16 100644 --- a/drivers/mtd/mtd-uclass.c +++ b/drivers/mtd/mtd-uclass.c @@ -24,6 +24,18 @@ int mtd_probe(struct udevice *dev) return device_probe(dev); } +/** + * mtd_remove - Remove the device @dev + * + * @dev: U-Boot device to probe + * + * @return 0 on success, an error otherwise. + */ +int mtd_remove(struct mtd_info *mtd) +{ + return device_remove(mtd->dev, DM_REMOVE_NORMAL); +} + /* * Implement a MTD uclass which should include most flash drivers. * The uclass private is pointed to mtd_info. |