rt2x00: fix rt2800pci compilation with SoC
PATCH 1/1 rt2x00: fix rt2800pci compilation with SoC
Compiling rt2800pci with CONFIG_RT2800PCI_SOC fails with "... rt2880pci.c:
error: incompatible type for argument 2 of 'rt2x00soc_probe'".
Fix this by using &rt2800pci_ops instead of rt2800pci_ops.
---
Just noticed that error while trying to compile rt2800pci for a Ralink SoC board.
drivers/net/wireless/rt2x00/rt2800pci.c +1 -1
@@ -1225,7 +1225,7 @@ MODULE_LICENSE("GPL");#ifdef CONFIG_RT2800PCI_SOC static int rt2800soc_probe (struct platform_device *pdev) { -return rt2x00soc_probe (pdev, rt2800pci_ops); +return rt2x00soc_probe (pdev, &rt2800pci_ops); } static struct platform_driver rt2800soc_driver = {
Quoted 7 lines · Helmut Schaa
Compiling rt2800pci with
CONFIG_RT2800PCI_SOCfails with "...rt2880pci.c:
error: incompatible type for argument 2 of 'rt2x00soc_probe'".Fix this by using
&rt2800pci_opsinstead ofrt2800pci_ops.Signed-off-by Helmut Schaa <[email protected]>---
John, this is probably one that should go to wireless-2.6.
---
Gertjan
Quoted 4 lines · Gertjan van Wingerde
Quoted 3 lines · Helmut Schaa
Compiling rt2800pci with
CONFIG_RT2800PCI_SOCfails with "...rt2880pci.c:
error: incompatible type for argument 2 of 'rt2x00soc_probe'".
Quoted 8 lines
Quoted 4 lines
Fix this by using
&rt2800pci_opsinstead ofrt2800pci_ops.Signed-off-by Helmut Schaa <[email protected]>---
John, this is probably one that should go to wireless-2.6.
I agree, which is why I fixed the whitespace damage and applied it...grrr...
John
Signature · 2 lines
John W. Linville Someday the world will need a hero, and you [email protected] might be all we have. Be ready.
Am Dienstag 02 März 2010 schrieb John W. Linville:
Quoted 7 lines · Gertjan van Wingerde
Quoted 6 lines · Helmut Schaa
Quoted 5 lines
Compiling rt2800pci with
CONFIG_RT2800PCI_SOCfails with "...rt2880pci.c:
error: incompatible type for argument 2 of 'rt2x00soc_probe'".Fix this by using
&rt2800pci_opsinstead ofrt2800pci_ops.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Signed-off-by Helmut Schaa <[email protected]>---
John, this is probably one that should go to wireless-2.6.
I agree, which is why I fixed the whitespace damage and applied it...grrr...
Oops, sorry John.
Thank you,
Helmut
Quoted 7 lines · John W. Linville
Quoted 6 lines · Gertjan van Wingerde
Quoted 5 lines · Helmut Schaa
Compiling rt2800pci with
CONFIG_RT2800PCI_SOCfails with "...rt2880pci.c:
error: incompatible type for argument 2 of 'rt2x00soc_probe'".Fix this by using
&rt2800pci_opsinstead ofrt2800pci_ops.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Signed-off-by Helmut Schaa <[email protected]>---
John, this is probably one that should go to wireless-2.6.
I agree, which is why I fixed the whitespace damage and applied it...grrr...
OK. Thanks for that.
---
Gertjan.