分页: 1 / 1

怎么样Use pci_name() instead?

发表于 : 2006-05-07 23:30
wswy100
我在安装新的网卡驱动时不成功,查阅readme,发现以下问题:
Problem: (CQ #13172) Driver does not compile on linux kernel
version 2.6.12.
Cause : This kernel version removes the pci_name field from
the device structure.
Change : Use pci_name() instead.
Impact : None.

怎么才能Use pci_name() instead?
请各位高手指点

发表于 : 2006-05-08 17:27
catinsnow
意思是修改驱动,使用pci_name()代替使用the pci_name field in
the device structure.

发表于 : 2006-05-08 17:59
wswy100
我在所有的驱动源代码中查找pci_name字符串,结果只有下面这条:
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
strcpy(info.bus_info, pci_name(pUmDevice->pdev));
怎么办呢?我是新手,请详细指点一下