Hayes Wang <hayesw...@realtek.com> :
> diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
> index 937d132..63542cc 100644
> --- a/drivers/net/usb/r8152.c
> +++ b/drivers/net/usb/r8152.c
[...]
> +static void rtl_request_firmware(struct r8152 *tp)
> +{
> +     char *fw_name = NULL;
> +
> +     if (tp->rtl_fw.fw)
> +             goto out_request;
> +
> +     switch (tp->version) {
> +     case RTL_VER_01:
> +             fw_name = "rtl_nic/rtl8152-1.fw";
> +             break;
> +     case RTL_VER_02:
> +             fw_name = "rtl_nic/rtl8152-2.fw";
> +             break;
> +     case RTL_VER_03:
> +             fw_name = "rtl_nic/rtl8153-1.fw";
> +             break;
> +     case RTL_VER_04:
> +             fw_name = "rtl_nic/rtl8153-2.fw";
> +             break;
> +     case RTL_VER_05:
> +             fw_name = "rtl_nic/rtl8153-3.fw";
> +             break;

The driver should use MODULE_FIRMWARE() for these files.

-- 
Ueimor
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to