aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sun/niu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/sun/niu.c')
-rw-r--r--drivers/net/ethernet/sun/niu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sun/niu.c b/drivers/net/ethernet/sun/niu.c
index fa322409bff3..52b2adf63cbf 100644
--- a/drivers/net/ethernet/sun/niu.c
+++ b/drivers/net/ethernet/sun/niu.c
@@ -9478,7 +9478,7 @@ static struct niu_parent *niu_new_parent(struct niu *np,
9478 if (IS_ERR(plat_dev)) 9478 if (IS_ERR(plat_dev))
9479 return NULL; 9479 return NULL;
9480 9480
9481 for (i = 0; attr_name(niu_parent_attributes[i]); i++) { 9481 for (i = 0; niu_parent_attributes[i].attr.name; i++) {
9482 int err = device_create_file(&plat_dev->dev, 9482 int err = device_create_file(&plat_dev->dev,
9483 &niu_parent_attributes[i]); 9483 &niu_parent_attributes[i]);
9484 if (err) 9484 if (err)