From: Tomasz Figa Date: Tue, 11 Sep 2012 11:36:51 +0000 (+0200) Subject: usb: gadget: s3c-hsotg: Add device tree-based instantiation X-Git-Tag: submit/tizen/20141121.110247~3855 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90f5d21e2cc1456acfc67f6cff7ab32f38d571ac;p=platform%2Fkernel%2Flinux-3.10.git usb: gadget: s3c-hsotg: Add device tree-based instantiation --- diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index af22f24..8fd9681 100644 --- a/drivers/usb/gadget/s3c-hsotg.c +++ b/drivers/usb/gadget/s3c-hsotg.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -3648,10 +3649,17 @@ static int s3c_hsotg_remove(struct platform_device *pdev) #define s3c_hsotg_resume NULL #endif +static const struct of_device_id s3c_hsotg_of_ids[] = { + { .compatible = "samsung,s3c-hsotg", }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, s3c_hsotg_of_ids); + static struct platform_driver s3c_hsotg_driver = { .driver = { .name = "s3c-hsotg", .owner = THIS_MODULE, + .of_match_table = s3c_hsotg_of_ids, }, .probe = s3c_hsotg_probe, .remove = s3c_hsotg_remove,