]> git.sur5r.net Git - u-boot/blobdiff - drivers/pch/pch-uclass.c
dm: Use dm_scan_fdt_dev() directly where possible
[u-boot] / drivers / pch / pch-uclass.c
index 5b2fa1f0a50f70078a97c08b2877b6699b0df31c..af794eb5a128e845b84bd6fe996544b01feb43dd 100644 (file)
@@ -54,19 +54,8 @@ int pch_get_io_base(struct udevice *dev, u32 *iobasep)
        return ops->get_io_base(dev, iobasep);
 }
 
-static int pch_uclass_post_bind(struct udevice *bus)
-{
-       /*
-        * Scan the device tree for devices
-        *
-        * Before relocation, only bind devices marked for pre-relocation
-        * use.
-        */
-       return dm_scan_fdt_dev(bus);
-}
-
 UCLASS_DRIVER(pch) = {
        .id             = UCLASS_PCH,
        .name           = "pch",
-       .post_bind      = pch_uclass_post_bind,
+       .post_bind      = dm_scan_fdt_dev,
 };