summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSeshendra Gadagottu <sgadagottu@nvidia.com>2011-03-18 16:48:24 +0530
committerVarun Colbert <vcolbert@nvidia.com>2011-03-22 16:39:45 -0800
commit1de3d9b5d3250f93d03e6674144f5d6f3615b70c (patch)
tree951362f6422b350041a33739b84b4f2f3508be12 /drivers
parentd456fa89896982d6bb0726dc5868fbca6aee40a4 (diff)
usb: ehci: tegra: sysfs ehci on/off interface permissions
Changing the sysfs ehci permissons as per new requirments. Reviewed-on: http://git-master/r/23516 (cherry picked from commit bbdaff2129511b1849d3252429b001435e7da501) Change-Id: I7573313094f00c266ba7ac5e098124a0d7f23420 Reviewed-on: http://git-master/r/23640 Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/ehci-tegra.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
index 6de0d3a5ad9f..29ae36d22e12 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -640,7 +640,8 @@ static ssize_t store_ehci_power(struct device *dev,
return count;
}
-static DEVICE_ATTR(ehci_power, 0666, show_ehci_power, store_ehci_power);
+static DEVICE_ATTR(ehci_power, S_IRUSR | S_IRGRP | S_IWUSR | S_IWGRP,
+ show_ehci_power, store_ehci_power);
static inline int create_ehci_sys_file(struct ehci_hcd *ehci)
{