diff options
author | Ira Weiny <ira.weiny@intel.com> | 2015-09-17 20:47:49 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-09-18 18:28:47 +0300 |
commit | e116a64fab650aed3d7b9b4db0b59c07f361bc9f (patch) | |
tree | 87443bf22b75104c7a707e538c3ec4f5565d1a6f /drivers/mfd | |
parent | 7d630467d7c454d801d72b58f242c373a64e39ed (diff) | |
download | linux-e116a64fab650aed3d7b9b4db0b59c07f361bc9f.tar.xz |
IB/hfi: Properly set permissions for user device files
Some of the device files are required to be user accessible for PSM while
most should remain accessible only by root.
Add a parameter to hfi1_cdev_init which controls if the user should have access
to this device which places it in a different class with the appropriate
devnode callback.
In addition set the devnode call back for the existing class to be a bit more
explicit for those permissions.
Finally remove the unnecessary null check before class_destroy
Tested-by: Donald Dutile <ddutile@redhat.com>
Signed-off-by: Haralanov, Mitko (mitko.haralanov@intel.com)
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/mfd')
0 files changed, 0 insertions, 0 deletions