Commit 272a53a1 authored by Tian Xin's avatar Tian Xin
Browse files

drivers: load Yunsilicon ethernet driver when xsc_pci probing

yunsilicon inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/IB1D6N


CVE: NA

------------------------------------------

load xsc_eth.ko during xsc_pci driver probing

Reviewed-by: default avatarWeihonggang <weihg@yunsilicon.com>
Reviewed-by: default avatarJacky <jacky@yunsilicon.com>
Signed-off-by: default avatarTianxin <tianx@yunsilicon.com>
parent bcfb3e65
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ static bool xsc_hw_reset;

#define DRIVER_NAME			"xsc_pci"
#define DRIVER_VERSION			"0.1.0"
#define ETH_DRIVER_NAME			"xsc_eth"

static const struct pci_device_id xsc_pci_id_table[] = {
	{ PCI_DEVICE(XSC_PCI_VENDOR_ID, XSC_MC_PF_DEV_ID) },
@@ -816,6 +817,8 @@ static int xsc_pci_probe(struct pci_dev *pci_dev,
		goto err_load;
	}

	request_module_nowait(ETH_DRIVER_NAME);

	return 0;

err_load: