OSDN Git Service

phy: usb: phy-brcm-usb: Remove sysfs attributes upon driver removal
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 22 May 2019 18:35:25 +0000 (11:35 -0700)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 12 Jun 2019 10:05:44 +0000 (15:35 +0530)
commitd9e100829fca6cbd270d7e005b0c0bb2d14924b8
treee5545c7027df6f27438734f8dc31fde36bc118a5
parentd4a36e82924d3305a17ac987a510f3902df5a4b2
phy: usb: phy-brcm-usb: Remove sysfs attributes upon driver removal

We are not destroying the sysfs attribute groupe we registered during
the probe function which will make subsequent probe calls to that
driver fail. Correct that with adding a remove function which only
removes those attributes since the reference counting on clocks did its
job already.

Fixes: 415060b21f31 ("phy: usb: phy-brcm-usb: Add ability to force DRD mode to host or device")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/broadcom/phy-brcm-usb.c