[PATCH] libertas: let DRV_NAME be overridable

Dan Williams dcbw at redhat.com
Sat Mar 17 00:56:58 EDT 2007


On Mon, 2007-02-26 at 14:59 +0100, Holger Schurig wrote:
> For now, it's "libertas" by default, but that is overwritten in
> if_usb.c/if_bootcmd.c and in if_cs.c.

Applied.

> Signed-off-by: Holger Schurig <hs4233 at mail.mn-solutions.de>
> ---
>  drivers/net/wireless/libertas/defs.h       |    4 +++-
>  drivers/net/wireless/libertas/if_bootcmd.c |    2 ++
>  drivers/net/wireless/libertas/if_usb.c     |    2 ++
>  3 files changed, 7 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/wireless/libertas/defs.h 
> b/drivers/net/wireless/libertas/defs.h
> index c310061..b8aada0 100644
> --- a/drivers/net/wireless/libertas/defs.h
> +++ b/drivers/net/wireless/libertas/defs.h
> @@ -8,7 +8,9 @@
>  #include <linux/spinlock.h>
>  
> 
> -#define DRV_NAME "usb8xxx"
> +#ifndef DRV_NAME
> +#define DRV_NAME "libertas"
> +#endif
>  
> 
>  #define LBS_DEB_ENTER	0x00000001
> diff --git a/drivers/net/wireless/libertas/if_bootcmd.c 
> b/drivers/net/wireless/libertas/if_bootcmd.c
> index c723bf7..bf8dc9f 100644
> --- a/drivers/net/wireless/libertas/if_bootcmd.c
> +++ b/drivers/net/wireless/libertas/if_bootcmd.c
> @@ -8,6 +8,8 @@
>  #include <linux/netdevice.h>
>  #include <linux/usb.h>
>  
> +#define DRV_NAME "usb8xxx"
> +
>  #include "defs.h"
>  #include "dev.h"
>  #include "if_usb.h"
> diff --git a/drivers/net/wireless/libertas/if_usb.c 
> b/drivers/net/wireless/libertas/if_usb.c
> index d9c2844..804b62d 100644
> --- a/drivers/net/wireless/libertas/if_usb.c
> +++ b/drivers/net/wireless/libertas/if_usb.c
> @@ -8,6 +8,8 @@
>  #include <linux/list.h>
>  #include <linux/usb.h>
>  
> +#define DRV_NAME "usb8xxx"
> +
>  #include "host.h"
>  #include "decl.h"
>  #include "defs.h"




More information about the libertas-dev mailing list