On 09/17/2015 01:47 PM, ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org wrote: > From: Ira Weiny > > 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 > Signed-off-by: Haralanov, Mitko (mitko.haralanov-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org) > Signed-off-by: Ira Weiny > > --- > > Changes from V1: > Fixed typo in error message > added missing goto on error > Remove null checks for class > set user_class to NULL on error Thanks, applied. -- Doug Ledford GPG KeyID: 0E572FDD