A 'struct device_type' instance can carry default attributes for the device. Use this facility to remove the export of nvdimm_bus_attribute_group and put the responsibility on the core rather than leaf implementations to define this attribute.
Showing the changes to include/linux (1 of 8 files). Show all
Unified · Split
| @@ -65,8 +65,6 @@ enum { · 64 unmodified lines | |||
| 65 | DPA_RESOURCE_ADJUSTED = 1 << 0, | 65 | DPA_RESOURCE_ADJUSTED = 1 << 0, |
| 66 | }; | 66 | }; |
| 67 | 67 | ||
| 68 | extern struct attribute_group nvdimm_bus_attribute_group; | ||
| 69 | |||
| 70 | struct nvdimm; | 68 | struct nvdimm; |
| 71 | struct nvdimm_bus_descriptor; | 69 | struct nvdimm_bus_descriptor; |
| 72 | typedef int (*ndctl_fn)(struct nvdimm_bus_descriptor *nd_desc, | 70 | typedef int (*ndctl_fn)(struct nvdimm_bus_descriptor *nd_desc, |