]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: spi_ks8995: remove sysfs bin file by registered attribute
authorVladimir Zapolskiy <vz@mleia.com>
Mon, 3 Nov 2014 23:25:09 +0000 (01:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Nov 2014 22:18:45 +0000 (17:18 -0500)
commitf7ac6c25cceb25ff46124277dc48a119149c256d
treeb2f992c919aad35db2788fd5108b94e12b0fc69f
parent69cebf798035bdc507215ace60023ecbddfb5867
net: phy: spi_ks8995: remove sysfs bin file by registered attribute

When a sysfs binary file is asked to be removed, it is found by
attribute name, so strictly speaking this change is not a fix, but
just in case when attribute name is changed in the driver or sysfs
internals are changed, it might be better to remove the previously
created file using right the same binary attribute.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/spi_ks8995.c