r8152: check hw version first
authorhayeswang <hayeswang@realtek.com>
Fri, 17 Mar 2017 03:20:13 +0000 (11:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 00:13:03 +0000 (17:13 -0700)
commit33928eed8d934bb912d8168cd5e57fa80f9122c4
tree952449e837c3b5c62092362b4b12f396f617f4e5
parentb6e13aeaa40017a6caeec89759827e220381d27d
r8152: check hw version first

Check hw version first in probe(). Do nothing if the driver doesn't
support the chip.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c