diff --git a/drivers/amlogic/power/power_ctrl.c b/drivers/amlogic/power/power_ctrl.c index ad0b7845d942..d7f64d72aabe 100644 --- a/drivers/amlogic/power/power_ctrl.c +++ b/drivers/amlogic/power/power_ctrl.c @@ -37,6 +37,12 @@ struct power_ctrl { struct power_ctrl ctrl; static bool probe_done; +bool is_support_power_ctrl(void) +{ + return probe_done; +} +EXPORT_SYMBOL(is_support_power_ctrl); + int power_ctrl_sleep(bool power_on, unsigned int shift) { unsigned int val; diff --git a/include/linux/amlogic/power_ctrl.h b/include/linux/amlogic/power_ctrl.h index f0ab6117fbb2..3a09e58a52f0 100644 --- a/include/linux/amlogic/power_ctrl.h +++ b/include/linux/amlogic/power_ctrl.h @@ -20,6 +20,7 @@ #include #ifdef CONFIG_AMLOGIC_POWER +bool is_support_power_ctrl(void); int power_ctrl_sleep(bool power_on, unsigned int shift); int power_ctrl_sleep_mask(bool power_on, unsigned int mask_val, unsigned int shift);