linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rt2x00: fix rt2800pci compilation with SoC
@ 2010-03-02 15:34 Helmut Schaa
  2010-03-02 19:11 ` Gertjan van Wingerde
  0 siblings, 1 reply; 5+ messages in thread
From: Helmut Schaa @ 2010-03-02 15:34 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless, Gertjan van Wingerde, Ivo van Doorn

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.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
---

Just noticed that error while trying to compile rt2800pci for a
Ralink SoC board.

diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
index 0e4c417..f71e83b 100644
--- a/drivers/net/wireless/rt2x00/rt2800pci.c
+++ b/drivers/net/wireless/rt2x00/rt2800pci.c
@@ -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 = {

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-02 20:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-02 15:34 [PATCH] rt2x00: fix rt2800pci compilation with SoC Helmut Schaa
2010-03-02 19:11 ` Gertjan van Wingerde
2010-03-02 19:45   ` John W. Linville
2010-03-02 20:03     ` Helmut Schaa
2010-03-02 20:31     ` Gertjan van Wingerde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).