
Return ERR_PTR with -ENODEV when the USBPD module is not enabled. This allows the DP driver to handle the failure correctly and prevents any potential NULL pointer dereferencing in the clean up path. Change-Id: I4fbc559276bebe770a27935243a59c10c1bb5491 Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
1.9 KiB
1.9 KiB