Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: ohci: s3c2410: allow probing from device tree

Allows configuring Samsung's s3c2410 USB OHCI controller using a
devicetree.

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sergio Prado and committed by
Greg Kroah-Hartman
96cad6ff 4000188b

+8
+8
drivers/usb/host/ohci-s3c2410.c
··· 457 457 .resume = ohci_hcd_s3c2410_drv_resume, 458 458 }; 459 459 460 + static const struct of_device_id ohci_hcd_s3c2410_dt_ids[] = { 461 + { .compatible = "samsung,s3c2410-ohci" }, 462 + { /* sentinel */ } 463 + }; 464 + 465 + MODULE_DEVICE_TABLE(of, ohci_hcd_s3c2410_dt_ids); 466 + 460 467 static struct platform_driver ohci_hcd_s3c2410_driver = { 461 468 .probe = ohci_hcd_s3c2410_drv_probe, 462 469 .remove = ohci_hcd_s3c2410_drv_remove, ··· 471 464 .driver = { 472 465 .name = "s3c2410-ohci", 473 466 .pm = &ohci_hcd_s3c2410_pm_ops, 467 + .of_match_table = ohci_hcd_s3c2410_dt_ids, 474 468 }, 475 469 }; 476 470