Newer
Older
barebox / drivers / usb / musb / musb_am335x.c
@Sascha Hauer Sascha Hauer on 26 Sep 2014 572 bytes USB: MUSB: Add barebox specific changes
#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);