drivers: platform: x86: Use PTR_RET function