blob: 2a9167a24571bb96a86561ed52fc1a7269b8943d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <common.h>
#include <init.h>
#include <linux/clk.h>
static int am335x_child_probe(struct device_d *dev)
{
int ret;
ret = of_platform_populate(dev->device_node, NULL, dev);
if (ret)
return ret;
return 0;
}
static __maybe_unused struct of_device_id am335x_child_dt_ids[] = {
{
.compatible = "ti,am33xx-usb",
}, {
/* sentinel */
},
};
static struct driver_d am335x_child_driver = {
.name = "am335x_child_probe",
.probe = am335x_child_probe,
.of_compatible = DRV_OF_COMPAT(am335x_child_dt_ids),
};
device_platform_driver(am335x_child_driver);
|