RE: [PATCH net-next 4/4] r8152: support firmware files

From: Hayes Wang
Date: Sun Aug 24 2014 - 23:23:20 EST


Francois Romieu [mailto:romieu@xxxxxxxxxxxxx]
[...]
> > +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.

Oops. I would fix this. Thanks.

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