soc/intel: Use config_of_path(SA_DEVFN_ROOT)
We do not want to disguise somewhat complex function calls as simple macros. Change-Id: I53324603c9ece1334c6e09d51338084166f7a585 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34299 Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: David Guckian Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -181,7 +181,7 @@ static void config_deep_sx(uint32_t deepsx_config)
|
||||
|
||||
void pmc_soc_init(struct device *dev)
|
||||
{
|
||||
const config_t *config = dev->chip_info;
|
||||
const config_t *config = config_of(dev);
|
||||
|
||||
rtc_init();
|
||||
|
||||
@@ -233,12 +233,7 @@ BOOT_STATE_INIT_ENTRY(BS_PAYLOAD_LOAD, BS_ON_EXIT, pm1_enable_pwrbtn_smi, NULL);
|
||||
*/
|
||||
static void pm1_handle_wake_pin(void *unused)
|
||||
{
|
||||
struct device *dev = SA_DEV_ROOT;
|
||||
|
||||
if (!dev || !dev->chip_info)
|
||||
return;
|
||||
|
||||
const config_t *conf = dev->chip_info;
|
||||
const config_t *conf = config_of_path(SA_DEVFN_ROOT);
|
||||
|
||||
/* If WAKE# pin is enabled, bail out early. */
|
||||
if (conf->deep_sx_config & DSX_EN_WAKE_PIN)
|
||||
|
Reference in New Issue
Block a user