summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_am335x.c
blob: d25cd2d8f16cb7a119b227d1060d7ee5062fc8dc (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
30
// SPDX-License-Identifier: GPL-2.0
#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);