summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorAlban Bedel <alban.bedel@avionic-design.de>2015-05-12 14:04:09 +0530
committerMatthew Pedro <mapedro@nvidia.com>2015-05-19 11:03:17 -0700
commit909e29cb3cf1f71cf0579f5d9df029c16c8b7dbb (patch)
tree4f5f373d1e0af4f0652d56c085e2ea06f0c3c9d5 /drivers/usb
parent2c9605fea66e0c5b697873b1eb4ff067b80d35b5 (diff)
usb: xhci: tegra: fix compilation with lockdep enabled
The sysfs_attr_init() macro expects a pointer to a struct attribute as argument and not a pointer to a struct device_attribute. This was bulding with lockdep disabled because in this case the sysfs_attr_init() macro does nothing. Bug 1618089 Change-Id: I6225c5c26beccae3848d8d5360a0efabcba60ce5 Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de> Signed-off-by: Bibek Basu <bbasu@nvidia.com> Reviewed-on: http://git-master/r/741614 GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/xhci-tegra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c
index 0e494ddbadaa..da83737788ee 100644
--- a/drivers/usb/host/xhci-tegra.c
+++ b/drivers/usb/host/xhci-tegra.c
@@ -4264,7 +4264,7 @@ static int hsic_power_create_file(struct tegra_xhci_hcd *tegra)
tegra->hsic_power_attr[p].show = hsic_power_show;
tegra->hsic_power_attr[p].store = hsic_power_store;
tegra->hsic_power_attr[p].attr.mode = (S_IRUGO | S_IWUSR);
- sysfs_attr_init(&tegra->hsic_power_attr[p]);
+ sysfs_attr_init(&tegra->hsic_power_attr[p].attr);
err = device_create_file(dev, &tegra->hsic_power_attr[p]);
if (err) {