net-next: ax88796: release platform device drvdata on probe error and module remove
authorMichael Schmitz <schmitzmic@gmail.com>
Thu, 19 Apr 2018 02:05:25 +0000 (14:05 +1200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 20:11:11 +0000 (16:11 -0400)
commit453da988785fab2658b88ab57b992cacc9dd3b7d
tree0c19bcbd97f4304c2c1a8f59b461ef2d10d93941
parentcaaf45a6ba064103fabc2cad46bb5caeec41859f
net-next: ax88796: release platform device drvdata on probe error and module remove

The net device struct pointer is stored as platform device drvdata on
module probe - clear the drvdata entry on probe fail there, as well as
when unloading the module.

Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/8390/ax88796.c