
Don't set unload flags earlier before unregister_driver when driver unloading to avoid runtime resume failure. And set this flags earlier before wait_for_ops in the pld_pcie_remove to give chance SSR will be skipped if unloading is in progress. Change-Id: I084db32b436148932a2a90e3e1dcb1122f4303b5 CRs-Fixed: 2589413