Search Linux Wireless

Re: Oops in ieee80211_register_hw

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 27 Apr 2007 20:26:06 -0400, Michael Wu wrote:
> I've attached a patch. I don't have the hardware so I don't know if it'll 
> work, but it seems right to me.

It fixes the problem for me. Thanks!

 Jiri


> ssb_devices_register sets sdev->dev after the device is registered. This
> moves it before device_register so it can be used during probe if an
> appropriate driver is found during device_register.
> 
> Signed-off-by: Michael Wu <flamingice@xxxxxxxxxxxx>
> ---
> 
>  drivers/ssb/main.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c
> index 682aa5c..c8afd1b 100644
> --- a/drivers/ssb/main.c
> +++ b/drivers/ssb/main.c
> @@ -364,6 +364,7 @@ static int ssb_devices_register(struct ssb_bus *bus)
>  
>  		dev->release = ssb_release_dev;
>  		dev->bus = &ssb_bustype;
> +		sdev->dev = dev;
>  		snprintf(dev->bus_id, sizeof(dev->bus_id),
>  			 "ssb%d:%d", bus->busnumber, dev_idx);
>  
> @@ -391,7 +392,6 @@ static int ssb_devices_register(struct ssb_bus *bus)
>  			kfree(devwrap);
>  			goto error;
>  		}
> -		sdev->dev = dev;
>  		dev_idx++;
>  	}
>  

-- 
Jiri Benc
SUSE Labs
-
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

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux