]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
nvmxip: Avoid probing on boot
authorSimon Glass <sjg@chromium.org>
Sun, 1 Sep 2024 22:26:13 +0000 (16:26 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 18 Sep 2024 19:00:59 +0000 (13:00 -0600)
Devices should be probed when they are used, not before. Drop this
boot-time probing.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/mtd/nvmxip/nvmxip-uclass.c

index 58e8c3fb74b2aa6f67891eedfc31ab667b17163f..d18bd0e3d6b9e3e64b00506bb20d577636a5eb7e 100644 (file)
@@ -53,14 +53,7 @@ int nvmxip_probe(struct udevice *udev)
        return 0;
 }
 
-static int nvmxip_post_bind(struct udevice *udev)
-{
-       dev_or_flags(udev, DM_FLAG_PROBE_AFTER_BIND);
-       return 0;
-}
-
 UCLASS_DRIVER(nvmxip) = {
        .name      = "nvmxip",
        .id        = UCLASS_NVMXIP,
-       .post_bind = nvmxip_post_bind,
 };