broadcom-wl: fix wild ssb_device accesses as pci_dev for legacy pci dma api
authorFelix Fietkau <nbd@openwrt.org>
Thu, 19 May 2011 10:08:02 +0000 (10:08 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 19 May 2011 10:08:02 +0000 (10:08 +0000)
commita5ba66730972305c2727d561d0b7dbb93289a5ef
tree1d9533e6f826c5dc639ee7f55038a5d919b4f0a1
parent0283d014e63836303f5cc336cbbd75aa72c60597
broadcom-wl: fix wild ssb_device accesses as pci_dev for legacy pci dma api

broadcom-wl driver bound to ssb device with ssb driver probe
have osh handle struct pdev pointer value initialized with
ssb_device pointer. Later on pdev is used with legacy pci
dma api as pci_dev thus causing oops sometimes.

The patch replaces legacy pci dma api and pass relevant
device struct pointer to avoid crashes.
Signed-off-by: George Kashperko <george@znau.edu.ua>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26949 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/broadcom-wl/patches/006-generic-dma-api.patch [new file with mode: 0644]