r8152: check if the pointer of the function exists
commit c79515e4 upstream. Return error code if autosuspend_en, eee_get, or eee_set don't exist. Signed-off-by: Hayes Wang <hayeswang@realtek.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Please register or sign in to comment