[PATCH RESEND] sparc: fix error handling in scan_one_device()