From: Greg Kroah-Hartman Date: Mon, 15 Mar 2010 21:01:55 +0000 (-0700) Subject: sysfs: fix sysfs lockdep warning in mlx4 code X-Git-Tag: v3.0~5394^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3691c964fa1a8f0eb5e5f00c644ef1bdd7e35a95;p=platform%2Fkernel%2Flinux-amlogic.git sysfs: fix sysfs lockdep warning in mlx4 code This fixes a sysfs lockdep warning in the mlx4 code. Cc: Yinghai Lu Cc: Eric Biederman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c index 8f6e816..b402a95 100644 --- a/drivers/net/mlx4/main.c +++ b/drivers/net/mlx4/main.c @@ -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) {