usb: musb-new: sunxi: fix error check
authorSam Edwards <cfsworks@gmail.com>
Mon, 5 Jun 2023 17:19:37 +0000 (11:19 -0600)
committerMarek Vasut <marex@denx.de>
Wed, 7 Jun 2023 21:38:51 +0000 (23:38 +0200)
commit3cbd92da9f49bbff630a615887132da03444ce43
treef4732fc3f62c74cd4b1a06be95750f7ff9e48d01
parent0a8a4b86422650d6955a2382796089735453902d
usb: musb-new: sunxi: fix error check

The `musb_register` function returns some ERR_PTR(...) on failure,
not NULL, so update the check here appropriately.

Signed-off-by: Sam Edwards <CFSworks@gmail.com>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/musb-new/sunxi.c