2 * Copyright (c) 2014 Google, Inc
4 * SPDX-License-Identifier: GPL-2.0+
11 DECLARE_GLOBAL_DATA_PTR
;
13 static int simple_bus_post_bind(struct udevice
*dev
)
15 return dm_scan_fdt_node(dev
, gd
->fdt_blob
, dev
->of_offset
, false);
18 UCLASS_DRIVER(simple_bus
) = {
19 .id
= UCLASS_SIMPLE_BUS
,
21 .post_bind
= simple_bus_post_bind
,
24 static const struct udevice_id generic_simple_bus_ids
[] = {
25 { .compatible
= "simple-bus" },
29 U_BOOT_DRIVER(simple_bus_drv
) = {
30 .name
= "generic_simple_bus",
31 .id
= UCLASS_SIMPLE_BUS
,
32 .of_match
= generic_simple_bus_ids
,