Re: [PATCH] ath5k: Use mips generic dma-mapping functions to avoid seqfault on AHB chips
From: John W. Linville <hidden>
Date: 2011-02-15 19:00:36
On Tue, Feb 15, 2011 at 09:49:24PM +0300, Nikolay Ledovskikh wrote:
quoted hunk
This patch fixes seqfault on ar2316 and other AHB based chips. (I don't know why it's not in archives) Signed-off-by: Nikolay Ledovskikh <redacted> ---diff --git a/drivers/net/wireless/ath/ath5k/ahb.c b/drivers/net/wireless/ath/ath5k/ahb.c index 707cde1..35d5273 100644--- a/drivers/net/wireless/ath/ath5k/ahb.c +++ b/drivers/net/wireless/ath/ath5k/ahb.c@@ -34,7 +34,7 @@ static void ath5k_ahb_read_cachesize(struct ath_common*common, int *csz) bool ath5k_ahb_eeprom_read(struct ath_common *common, u32 off, u16 *data) { struct ath5k_softc *sc = common->priv; - struct platform_device *pdev = to_platform_device(sc->dev); + struct platform_device *pdev = to_platform_device(wiphy_dev(sc->hw->wiphy)); struct ar231x_board_config *bcfg = pdev->dev.platform_data; u16 *eeprom, *eeprom_end;
Please use a mailer that doesn't do whitespace damage to patches -- I'll never live long enough to make-up for the time I've already spent fixing-up broken patches... -- John W. Linville Someday the world will need a hero, and you linville@tuxdriver.com might be all we have. Be ready.