m68k/amiga: Add error checks when registering platform devices