Date:2010-05-09 01:35:02 (10 years 2 months ago)
Author:Lars C.
Commit:0c14655c8589bf91be352079120c64c1971502db
Message:jz4740-udc: probe and remove should be in __dev{init,exit} sections

Files: drivers/usb/gadget/jz4740_udc.c (3 diffs)

Change Details

drivers/usb/gadget/jz4740_udc.c
22742274}
22752275
22762276
2277static int jz4740_udc_probe(struct platform_device *pdev)
2277static int __devinit jz4740_udc_probe(struct platform_device *pdev)
22782278{
22792279    struct jz4740_udc *dev = &udc_dev;
22802280    int ret;
...... 
23542354        return ret;
23552355}
23562356
2357static int jz4740_udc_remove(struct platform_device *pdev)
2357static int __devexit jz4740_udc_remove(struct platform_device *pdev)
23582358{
23592359    struct jz4740_udc *dev = platform_get_drvdata(pdev);
23602360
...... 
24122412
24132413static struct platform_driver udc_driver = {
24142414    .probe = jz4740_udc_probe,
2415    .remove = jz4740_udc_remove,
2415    .remove = __devexit_p(jz4740_udc_remove),
24162416    .driver = {
24172417        .name = "jz-udc",
24182418        .owner = THIS_MODULE,

Archive Download the corresponding diff file



interactive