[PATCH 5.15 54/87] powerpc/eeh: avoid possible crash when edev->pdev changes