Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43179
b: refs/heads/master
c: b259e7d
h: refs/heads/master
i:
  43177: 67970f4
  43175: e052d35
v: v3
  • Loading branch information
Paul Sokolovsky authored and David S. Miller committed Dec 7, 2006
1 parent 0b04117 commit da59920
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 48d4ed7a86d70a7e381cc8e48a97312182093ce2
refs/heads/master: b259e7d250e15d45b3c8362917931aaff1c88d73
26 changes: 13 additions & 13 deletions trunk/drivers/net/irda/pxaficp_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,9 +704,9 @@ static int pxa_irda_stop(struct net_device *dev)
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)) {
Expand All @@ -718,9 +718,9 @@ static int pxa_irda_suspend(struct device *_dev, pm_message_t state)
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)) {
Expand All @@ -746,9 +746,8 @@ static int pxa_irda_init_iobuf(iobuff_t *io, int size)
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;
Expand Down Expand Up @@ -822,9 +821,9 @@ static int pxa_irda_probe(struct device *_dev)
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);
Expand All @@ -840,9 +839,10 @@ static int pxa_irda_remove(struct device *_dev)
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,
Expand All @@ -851,12 +851,12 @@ static struct device_driver pxa_ir_driver = {

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);
Expand Down

0 comments on commit da59920

Please sign in to comment.