]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/net/mlx4/main.c
sysfs: fix sysfs lockdep warning in mlx4 code
[mv-sheeva.git] / drivers / net / mlx4 / main.c
index 8f6e816a7395f78dadfa12c7a64269ce820d0b7d..b402a95c87c72d44bd6b2c3dca4f38d4c464f353 100644 (file)
@@ -1023,6 +1023,7 @@ static int mlx4_init_port_info(struct mlx4_dev *dev, int port)
        info->port_attr.attr.mode = S_IRUGO | S_IWUSR;
        info->port_attr.show      = show_port_type;
        info->port_attr.store     = set_port_type;
+       sysfs_attr_init(&info->port_attr.attr);
 
        err = device_create_file(&dev->pdev->dev, &info->port_attr);
        if (err) {