Added backported diffs for pcmcia_parse_tuple() in b43
authorTim Gardner <timg@tpi.com>
Mon, 27 Oct 2008 18:41:21 +0000 (12:41 -0600)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 27 Oct 2008 19:34:07 +0000 (12:34 -0700)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
compat/compat.diff

index cc545fb2da903a68d822eb8d17bdbdd9ced30564..d86acc4821c7fe3409fb4f294551b855393fa08f 100644 (file)
  obj-$(CONFIG_LIBERTAS)                += libertas/
  
  obj-$(CONFIG_LIBERTAS_THINFIRM)       += libertas_tf/
+diff --git a/drivers/net/wireless/b43/pcmcia.c b/drivers/net/wireless/b43/pcmcia.c
+index 3cfc303..33c76b0 100644
+--- a/drivers/net/wireless/b43/pcmcia.c
++++ b/drivers/net/wireless/b43/pcmcia.c
+@@ -87,7 +87,11 @@ static int __devinit b43_pcmcia_probe(struct pcmcia_device *dev)
+       res = pcmcia_get_tuple_data(dev, &tuple);
+       if (res != 0)
+               goto err_kfree_ssb;
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28))
++      res = pcmcia_parse_tuple(NULL,&tuple, &parse);
++#else
+       res = pcmcia_parse_tuple(&tuple, &parse);
++#endif
+       if (res != 0)
+               goto err_kfree_ssb;