dax: Simplify root read-only definition for the 'resource' attribute
authorDan Williams <dan.j.williams@intel.com>
Wed, 13 Nov 2019 01:12:38 +0000 (17:12 -0800)
committerDan Williams <dan.j.williams@intel.com>
Tue, 19 Nov 2019 17:52:12 +0000 (09:52 -0800)
commit153dd28647d63086dc6e1df5ee06fd0a5d6435a5
tree064ac1ec0810f0302c207c9d1a01510f25bf3ff2
parent770619a95106340230a72a725c958c037284ec1f
dax: Simplify root read-only definition for the 'resource' attribute

Rather than update the permission in ->is_visible() set the permission
directly at declaration time.

Cc: Ira Weiny <ira.weiny@intel.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Link: https://lore.kernel.org/r/157309904959.1582359.7281180042781955506.stgit@dwillia2-desk3.amr.corp.intel.com
drivers/dax/bus.c