diff options
Diffstat (limited to 'packages/linux/logicpd-pxa270-2.6.19.2/pxa_irda_susres_fix-r0.patch')
-rw-r--r-- | packages/linux/logicpd-pxa270-2.6.19.2/pxa_irda_susres_fix-r0.patch | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/packages/linux/logicpd-pxa270-2.6.19.2/pxa_irda_susres_fix-r0.patch b/packages/linux/logicpd-pxa270-2.6.19.2/pxa_irda_susres_fix-r0.patch deleted file mode 100644 index 9f4885a85c..0000000000 --- a/packages/linux/logicpd-pxa270-2.6.19.2/pxa_irda_susres_fix-r0.patch +++ /dev/null @@ -1,93 +0,0 @@ ---- - drivers/net/irda/pxaficp_ir.c | 28 ++++++++++++++-------------- - 1 file changed, 14 insertions(+), 14 deletions(-) - -Index: linux-2.6.19/drivers/net/irda/pxaficp_ir.c -=================================================================== ---- linux-2.6.19.orig/drivers/net/irda/pxaficp_ir.c 2006-11-29 21:57:37.000000000 +0000 -+++ linux-2.6.19/drivers/net/irda/pxaficp_ir.c 2006-12-16 22:07:27.000000000 +0000 -@@ -704,9 +704,9 @@ static int pxa_irda_stop(struct net_devi - return 0; - } - --static int pxa_irda_suspend(struct device *_dev, pm_message_t state) -+static int pxa_irda_suspend(struct platform_device *_dev, pm_message_t state) - { -- struct net_device *dev = dev_get_drvdata(_dev); -+ struct net_device *dev = platform_get_drvdata(_dev); - struct pxa_irda *si; - - if (dev && netif_running(dev)) { -@@ -718,9 +718,9 @@ static int pxa_irda_suspend(struct devic - return 0; - } - --static int pxa_irda_resume(struct device *_dev) -+static int pxa_irda_resume(struct platform_device *_dev) - { -- struct net_device *dev = dev_get_drvdata(_dev); -+ struct net_device *dev = platform_get_drvdata(_dev); - struct pxa_irda *si; - - if (dev && netif_running(dev)) { -@@ -746,9 +746,8 @@ static int pxa_irda_init_iobuf(iobuff_t - return io->head ? 0 : -ENOMEM; - } - --static int pxa_irda_probe(struct device *_dev) -+static int pxa_irda_probe(struct platform_device *pdev) - { -- struct platform_device *pdev = to_platform_device(_dev); - struct net_device *dev; - struct pxa_irda *si; - unsigned int baudrate_mask; -@@ -805,7 +804,7 @@ static int pxa_irda_probe(struct device - err = register_netdev(dev); - - if (err == 0) -- dev_set_drvdata(&pdev->dev, dev); -+ platform_set_drvdata(pdev, dev); - - if (err) { - kfree(si->tx_buff.head); -@@ -822,9 +821,9 @@ err_mem_1: - return err; - } - --static int pxa_irda_remove(struct device *_dev) -+static int pxa_irda_remove(struct platform_device *_dev) - { -- struct net_device *dev = dev_get_drvdata(_dev); -+ struct net_device *dev = platform_get_drvdata(_dev); - - if (dev) { - struct pxa_irda *si = netdev_priv(dev); -@@ -840,9 +839,10 @@ static int pxa_irda_remove(struct device - return 0; - } - --static struct device_driver pxa_ir_driver = { -- .name = "pxa2xx-ir", -- .bus = &platform_bus_type, -+static struct platform_driver pxa_ir_driver = { -+ .driver = { -+ .name = "pxa2xx-ir", -+ }, - .probe = pxa_irda_probe, - .remove = pxa_irda_remove, - .suspend = pxa_irda_suspend, -@@ -851,12 +851,12 @@ static struct device_driver pxa_ir_drive - - static int __init pxa_irda_init(void) - { -- return driver_register(&pxa_ir_driver); -+ return platform_driver_register(&pxa_ir_driver); - } - - static void __exit pxa_irda_exit(void) - { -- driver_unregister(&pxa_ir_driver); -+ platform_driver_unregister(&pxa_ir_driver); - } - - module_init(pxa_irda_init); |