diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-03-09 18:51:46 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-03-09 18:51:46 +0000 |
commit | 95f14d052a7439c60e35a6d910d6bd3de023907c (patch) | |
tree | 83b1039c3c9d0ff8d8b842d1ec5fc4a392a3a7d2 /target/linux/cns3xxx/files/drivers/usb/dwc | |
parent | 85348d602e2c4b383fa0bec95fb97d9d79094743 (diff) | |
download | master-31e0f0ae-95f14d052a7439c60e35a6d910d6bd3de023907c.tar.gz master-31e0f0ae-95f14d052a7439c60e35a6d910d6bd3de023907c.tar.bz2 master-31e0f0ae-95f14d052a7439c60e35a6d910d6bd3de023907c.zip |
cns3xxx: add linux 3.8 support and use it by default
SVN-Revision: 35908
Diffstat (limited to 'target/linux/cns3xxx/files/drivers/usb/dwc')
-rw-r--r-- | target/linux/cns3xxx/files/drivers/usb/dwc/otg_driver.c | 6 | ||||
-rw-r--r-- | target/linux/cns3xxx/files/drivers/usb/dwc/otg_pcd.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/cns3xxx/files/drivers/usb/dwc/otg_driver.c b/target/linux/cns3xxx/files/drivers/usb/dwc/otg_driver.c index 002c394797..f1fece8bf8 100644 --- a/target/linux/cns3xxx/files/drivers/usb/dwc/otg_driver.c +++ b/target/linux/cns3xxx/files/drivers/usb/dwc/otg_driver.c @@ -636,7 +636,7 @@ static int dwc_otg_driver_cleanup(struct platform_device *pdev) * * @param[in] lmdev lm_device definition */ -static int __devinit dwc_otg_driver_probe(struct platform_device *pdev) +static int dwc_otg_driver_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; int retval = 0; @@ -795,7 +795,7 @@ static int __devinit dwc_otg_driver_probe(struct platform_device *pdev) return retval; } -static int __devexit dwc_otg_driver_remove(struct platform_device *pdev) +static int dwc_otg_driver_remove(struct platform_device *pdev) { return dwc_otg_driver_cleanup(pdev); } @@ -803,7 +803,7 @@ static int __devexit dwc_otg_driver_remove(struct platform_device *pdev) static struct platform_driver dwc_otg_platform_driver = { .driver.name = "dwc_otg", .probe = dwc_otg_driver_probe, - .remove = __devexit_p(dwc_otg_driver_remove), + .remove = dwc_otg_driver_remove, }; static int __init dwc_otg_init_module(void) diff --git a/target/linux/cns3xxx/files/drivers/usb/dwc/otg_pcd.c b/target/linux/cns3xxx/files/drivers/usb/dwc/otg_pcd.c index 85c6fd9074..823989a6f5 100644 --- a/target/linux/cns3xxx/files/drivers/usb/dwc/otg_pcd.c +++ b/target/linux/cns3xxx/files/drivers/usb/dwc/otg_pcd.c @@ -820,7 +820,7 @@ struct free_param { dma_addr_t dma_addr; uint32_t size; }; -void free_list_agent_fn(void *data){ +static void free_list_agent_fn(struct work_struct *work) { struct list_head free_list; struct free_param *cur,*next; @@ -830,7 +830,7 @@ void free_list_agent_fn(void *data){ spin_unlock(&tofree_list_lock); list_for_each_entry_safe(cur,next,&free_list,list){ - if(cur==&free_list) break; + if(&cur->list==&free_list) break; dma_free_coherent(NULL,cur->size,cur->addr,cur->dma_addr); list_del(&cur->list); kfree(cur); |