|
@@ -400,7 +400,7 @@ static void device_remove_groups(struct device *dev,
|
|
|
static int device_add_attrs(struct device *dev)
|
|
|
{
|
|
|
struct class *class = dev->class;
|
|
|
- struct device_type *type = dev->type;
|
|
|
+ const struct device_type *type = dev->type;
|
|
|
int error;
|
|
|
|
|
|
if (class) {
|
|
@@ -440,7 +440,7 @@ static int device_add_attrs(struct device *dev)
|
|
|
static void device_remove_attrs(struct device *dev)
|
|
|
{
|
|
|
struct class *class = dev->class;
|
|
|
- struct device_type *type = dev->type;
|
|
|
+ const struct device_type *type = dev->type;
|
|
|
|
|
|
device_remove_groups(dev, dev->groups);
|
|
|
|