From: Márton Németh Date: Mon, 30 May 2011 19:50:26 +0000 (+0200) Subject: usbip: change dev_attr_group to constant X-Git-Tag: MMI-PSA29.97-13-9~18845^2~568^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cf77acfca3ec3170a665c58b2712d275b8ab3860;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git usbip: change dev_attr_group to constant The dev_attr_group variable is never changed and it is only passed to the second parameter of sysfs_create_group() and sysfs_remove_group() functions. These functions are defined in linux/sysfs.h: the second parameter is a pointer to const in both cases. Signed-off-by: Márton Németh Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/usbip/vhci.h b/drivers/staging/usbip/vhci.h index 3a1bacb4e228..71a586e00fd7 100644 --- a/drivers/staging/usbip/vhci.h +++ b/drivers/staging/usbip/vhci.h @@ -96,7 +96,7 @@ struct vhci_hcd { }; extern struct vhci_hcd *the_controller; -extern struct attribute_group dev_attr_group; +extern const struct attribute_group dev_attr_group; #define hardware (&the_controller->pdev.dev) /* vhci_hcd.c */ diff --git a/drivers/staging/usbip/vhci_sysfs.c b/drivers/staging/usbip/vhci_sysfs.c index ecd52b6c731d..0cd039bb5fd6 100644 --- a/drivers/staging/usbip/vhci_sysfs.c +++ b/drivers/staging/usbip/vhci_sysfs.c @@ -239,6 +239,6 @@ static struct attribute *dev_attrs[] = { NULL, }; -struct attribute_group dev_attr_group = { +const struct attribute_group dev_attr_group = { .attrs = dev_attrs, };