Re: [PATCH 1/2] PCI: export pci_match_device()

2020-10-25 Thread Zhenzhong Duan
On Thu, Oct 22, 2020 at 11:21 PM Christoph Hellwig wrote: > > On Wed, Oct 21, 2020 at 04:10:29PM +0800, Zhenzhong Duan wrote: > > pci_match_id() is deprecated as it doesn't catch any dynamic ids that > > a driver might want to check for. > > > > Export pci_match_device() as a replacement which sup

Re: [PATCH 1/2] PCI: export pci_match_device()

2020-10-22 Thread Christoph Hellwig
On Wed, Oct 21, 2020 at 04:10:29PM +0800, Zhenzhong Duan wrote: > pci_match_id() is deprecated as it doesn't catch any dynamic ids that > a driver might want to check for. > > Export pci_match_device() as a replacement which supports both dynamic > and static ids. You don't actually seems to add

[PATCH 1/2] PCI: export pci_match_device()

2020-10-21 Thread Zhenzhong Duan
pci_match_id() is deprecated as it doesn't catch any dynamic ids that a driver might want to check for. Export pci_match_device() as a replacement which supports both dynamic and static ids. Signed-off-by: Zhenzhong Duan --- drivers/pci/pci-driver.c | 3 ++- include/linux/pci.h | 2 ++ 2 f