drivers: peci: Convert drivers to new DT device macros

Convert peci drivers from:

	DEVICE_AND_API_INIT -> DEVICE_DT_INST_DEFINE

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-12-15 08:12:20 -06:00 committed by Maureen Helm
commit 640437003f

View file

@ -384,8 +384,9 @@ static int peci_xec_init(const struct device *dev)
return 0;
}
DEVICE_AND_API_INIT(peci_xec, DT_INST_LABEL(0),
DEVICE_DT_INST_DEFINE(0,
&peci_xec_init,
device_pm_control_nop,
NULL, NULL,
POST_KERNEL, CONFIG_PECI_INIT_PRIORITY,
&peci_xec_driver_api);