Unverified Commit 7ff42f62 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12834 [OLK-6.6] drivers: load Yunsilicon ethernet driver when xsc_pci probing

Merge Pull Request from: @OGman 
 
load xsc_eth.ko during xsc_pci driver probing 
 
Link:https://gitee.com/openeuler/kernel/pulls/12834

 

Reviewed-by: default avatarZhang Peng <zhangpeng362@huawei.com>
Signed-off-by: default avatarZhang Peng <zhangpeng362@huawei.com>
parents 907ee4c0 272a53a1
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: