r8152: check if the pointer of the function exists
authorHayes Wang <hayeswang@realtek.com>
Fri, 19 Feb 2021 09:04:41 +0000 (17:04 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Feb 2021 20:36:02 +0000 (12:36 -0800)
commitc79515e47935c747282c6ed2ee5b2ef039756eeb
treeb776cd518406712772d53fd77370b1ee5238be59
parent7a0ae61acde2cebd69665837170405eced86a6c7
r8152: check if the pointer of the function exists

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>
drivers/net/usb/r8152.c