platform/x86: intel_pmc_ipc: Switch to use driver->dev_groups
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 22 Jan 2020 16:46:19 +0000 (19:46 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 22 Jan 2020 16:52:27 +0000 (18:52 +0200)
commitcf85e7c7f437cb4e378bddbdb366477096714819
tree0d5cc90ce8954910de29d7c2778f20213d827f26
parentfc07ac64499702ca217e857e3ef924f30e0506bd
platform/x86: intel_pmc_ipc: Switch to use driver->dev_groups

The driver core provides support for adding additional attributes for
devices via new ->dev_groups member of struct device_driver. Convert the
driver to use that instead of adding the attributes manually.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_pmc_ipc.c