• Niklas Schnelle's avatar
    s390/pci: remove clp_rescan_pci_devices_simple() · c3b2c906
    Niklas Schnelle authored
    clp_rescan_pci_devices_simple() is neither simpler than
    clp_scan_pci_devices() nor does it really scan PCI devices, in particular
    it will neither add newly discovered devices nor remove those which
    disappeared.
    Instead it only refreshes PCI function handles and also
    has just a single callsite in the same translation unit left which
    in fact only refreshes one specific function handle identified by
    a FID.
    
    Clarify this by renaming the function and its helper to
    clp_refresh_fh() respectvely __clp_refresh_fh() and make it take
    a fid directly which saves us dealing with the NULL case which
    updated all function handles but is not used anymore.
    Furthermore since the only callsite is in the same translation unit
    make it static.
    Reviewed-by: default avatarMatthew Rosato <mjrosato@linux.ibm.com>
    Signed-off-by: default avatarNiklas Schnelle <schnelle@linux.ibm.com>
    Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
    c3b2c906
pci_clp.c 15.5 KB