usb: typec: fusb302: lazy acquire power supply objects

power_supply_get_by_name explicitly returns NULL in some cases.
Hence, check for IS_ERR_OR_NULL while querying the status of the
power_supply object. Also, lazy query for the power supply objects
instead of EPROBE_DEFER as there seems to be circular dependency
which prevents the driver probe to never complete when one of the
power supply is absent.

Bug: 112529920
Change-Id: Ib55521570ccc8ff8a9c530c6b4ae4c314ad4b4cc
Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com>
1 file changed