aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/brcm80211/util/hnddma.c
diff options
context:
space:
mode:
authorArend van Spriel <arend@broadcom.com>2011-03-02 21:18:43 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-02 19:48:04 -0500
commit4fe9042fe05a828293f693405f14b3f6a7898866 (patch)
treef903441c37492744eee425573284e5501304fdf3 /drivers/staging/brcm80211/util/hnddma.c
parentstaging: brcm80211: removed struct osl_info usage from fullmac driver (diff)
downloadlinux-dev-4fe9042fe05a828293f693405f14b3f6a7898866.tar.xz
linux-dev-4fe9042fe05a828293f693405f14b3f6a7898866.zip
staging: brcm80211: remove unused attributes from struct osl_info
Getting rid of the whole osl concept soon this removes most fields in struct osl_info. Turned out hnddma.c was still using it so this was fixed and now it gets pointer to bus device from si_info which it only needs in the attach function for this purpose so reference to it does not need to be kept. Two unused functions referencing the removed fields in linux_osl.c also were removed. Reviewed-by: Brett Rudley <brudley@broadcom.com> Reviewed-by: Henry Ptasinski <henryp@broadcom.com> Reviewed-by: Roland Vossen <rvossen@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/brcm80211/util/hnddma.c')
-rw-r--r--drivers/staging/brcm80211/util/hnddma.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/brcm80211/util/hnddma.c b/drivers/staging/brcm80211/util/hnddma.c
index b7bc84d62c38..01d4b274520b 100644
--- a/drivers/staging/brcm80211/util/hnddma.c
+++ b/drivers/staging/brcm80211/util/hnddma.c
@@ -82,7 +82,6 @@ typedef struct dma_info {
struct osl_info *osh; /* os handle */
void *pbus; /* bus handle */
- si_t *sih; /* sb handle */
bool dma64; /* this dma engine is operating in 64-bit mode */
bool addrext; /* this dma engine supports DmaExtendedAddrChanges */
@@ -338,8 +337,7 @@ struct hnddma_pub *dma_attach(struct osl_info *osh, char *name, si_t *sih,
di->name[MAXNAMEL - 1] = '\0';
di->osh = osh;
- di->sih = sih;
- di->pbus = osh->pdev;
+ di->pbus = ((struct si_info *)sih)->pbus;
/* save tunables */
di->ntxd = (u16) ntxd;