If MUSB support is disabled, these parts of the code will fail to build.
Cc: Paul Kocialkowski <contact@paulk.fr>
Signed-off-by: Tom Rini <trini@konsulko.com>
.plat = &serial_omap_plat
};
+#if defined(CONFIG_USB_MUSB_HOST) || defined(CONFIG_USB_MUSB_GADGET)
static struct musb_hdrc_config musb_config = {
.multipoint = 1,
.dyn_fifo = 1,
.platform_ops = &omap2430_ops,
.board_data = &musb_board_data,
};
+#endif
void set_muxconf_regs(void)
{
omap_die_id_serial();
/* MUSB */
-
+#if defined(CONFIG_USB_MUSB_HOST) || defined(CONFIG_USB_MUSB_GADGET)
musb_register(&musb_platform_data, &musb_board_data, (void *)MUSB_BASE);
+#endif
return 0;
}