mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 15:43:59 +08:00
net: ehea: convert to use DRIVER_ATTR_RO
We are trying to get rid of DRIVER_ATTR(), and the ehea driver's attribute can be trivially changed to use DRIVER_ATTR_RO(). Cc: Douglas Miller <dougmill@linux.vnet.ibm.com> Cc: <netdev@vger.kernel.org> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f85205c42e
commit
ce8e0cd892
@ -3553,14 +3553,12 @@ static int check_module_parm(void)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t ehea_show_capabilities(struct device_driver *drv,
|
static ssize_t capabilities_show(struct device_driver *drv, char *buf)
|
||||||
char *buf)
|
|
||||||
{
|
{
|
||||||
return sprintf(buf, "%d", EHEA_CAPABILITIES);
|
return sprintf(buf, "%d", EHEA_CAPABILITIES);
|
||||||
}
|
}
|
||||||
|
|
||||||
static DRIVER_ATTR(capabilities, S_IRUSR | S_IRGRP | S_IROTH,
|
static DRIVER_ATTR_RO(capabilities);
|
||||||
ehea_show_capabilities, NULL);
|
|
||||||
|
|
||||||
static int __init ehea_module_init(void)
|
static int __init ehea_module_init(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user