On Tue, Feb 15, 2011 at 09:49:24PM +0300, Nikolay Ledovskikh wrote: > 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 <nledovskikh@xxxxxxxxx> > --- > 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@xxxxxxxxxxxxx might be all we have. Be ready. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html