[Linux-stable-mirror] [PATCH 4.14 130/178] PCI: Detach driver before procfs & sysfs teardown on device remove