]> git.dujemihanovic.xyz Git - u-boot.git/commit
nand: Add function to unregister NAND devices
authorSean Anderson <seanga2@gmail.com>
Sat, 4 Nov 2023 20:37:49 +0000 (16:37 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 16 Nov 2023 17:43:49 +0000 (12:43 -0500)
commitc2034821772898b54d745e79fc96586cebaae12c
treebcb42b5b9843a8ba00437d55d2c0e4836626cc26
parentb37a9208a2ed36b67303e8169539c1a0c42ea0e1
nand: Add function to unregister NAND devices

This performs the opposite of nand_register, allowing drivers to unregister
nand devices. This is probably unnecessary for most regular drivers, but we
expect sandbox drivers to get repeatedly bound/unbound, so this will help
avoid dangling pointers.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
drivers/mtd/nand/raw/nand.c
include/nand.h