Skip to content

Commit

Permalink
sysfs: fix sysfs lockdep warning in mlx4 code
Browse files Browse the repository at this point in the history
This fixes a sysfs lockdep warning in the mlx4 code.

Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Eric Biederman <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Mar 19, 2010
1 parent 21e3bde commit 3691c96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/mlx4/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3691c96

Please sign in to comment.