Skip to content
  • Greg Kroah-Hartman's avatar
    [PATCH] PCI: clean up dynamic pci id logic · 75865858
    Greg Kroah-Hartman authored
    
    
    The dynamic pci id logic has been bothering me for a while, and now that
    I started to look into how to move some of this to the driver core, I
    thought it was time to clean it all up.
    
    It ends up making the code smaller, and easier to follow, and fixes a
    few bugs at the same time (dynamic ids were not being matched
    everywhere, and so could be missed on some call paths for new devices,
    semaphore not needed to be grabbed when adding a new id and calling the
    driver core, etc.)
    
    I also renamed the function pci_match_device() to pci_match_id() as
    that's what it really does.
    
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    75865858