Commit ad8f20a4 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

pcmcia: ds: convert to use DRIVER_ATTR_RO

We are trying to get rid of DRIVER_ATTR(), and the pcmcia driver's
attribute can be trivially changed to use DRIVER_ATTR_RO().

Cc: Russell King <rmk+kernel@armlinux.org.uk>
Cc: <linux-pcmcia@lists.infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0457e1ae
...@@ -95,7 +95,7 @@ struct pcmcia_dynid { ...@@ -95,7 +95,7 @@ struct pcmcia_dynid {
* and causes the driver to probe for all devices again. * and causes the driver to probe for all devices again.
*/ */
static ssize_t static ssize_t
pcmcia_store_new_id(struct device_driver *driver, const char *buf, size_t count) new_id_store(struct device_driver *driver, const char *buf, size_t count)
{ {
struct pcmcia_dynid *dynid; struct pcmcia_dynid *dynid;
struct pcmcia_driver *pdrv = to_pcmcia_drv(driver); struct pcmcia_driver *pdrv = to_pcmcia_drv(driver);
...@@ -133,7 +133,7 @@ pcmcia_store_new_id(struct device_driver *driver, const char *buf, size_t count) ...@@ -133,7 +133,7 @@ pcmcia_store_new_id(struct device_driver *driver, const char *buf, size_t count)
return retval; return retval;
return count; return count;
} }
static DRIVER_ATTR(new_id, S_IWUSR, NULL, pcmcia_store_new_id); static DRIVER_ATTR_WO(new_id);
static void static void
pcmcia_free_dynids(struct pcmcia_driver *drv) pcmcia_free_dynids(struct pcmcia_driver *drv)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment