--- zzzz-none-000/linux-3.10.107/drivers/regulator/dummy.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/regulator/dummy.c 2021-02-04 17:41:59.000000000 +0000 @@ -25,11 +25,15 @@ struct regulator_dev *dummy_regulator_rdev; -static struct regulator_init_data dummy_initdata; +static struct regulator_init_data dummy_initdata = { + .constraints = { + .always_on = 1, + }, +}; static struct regulator_ops dummy_ops; -static struct regulator_desc dummy_desc = { +static const struct regulator_desc dummy_desc = { .name = "regulator-dummy", .id = -1, .type = REGULATOR_VOLTAGE, @@ -59,7 +63,6 @@ .probe = dummy_regulator_probe, .driver = { .name = "reg-dummy", - .owner = THIS_MODULE, }, };