Skip to content

Commit c76aa32

Browse files
committed
Merge back staging AVS changes for v4.21.
2 parents 40e020c + 2d12df4 commit c76aa32

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

drivers/power/avs/smartreflex.c

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
static LIST_HEAD(sr_list);
3838

3939
static struct omap_sr_class_data *sr_class;
40-
static struct omap_sr_pmic_data *sr_pmic_data;
4140
static struct dentry *sr_dbg_dir;
4241

4342
static inline void sr_write_reg(struct omap_sr *sr, unsigned offset, u32 value)
@@ -780,25 +779,6 @@ void omap_sr_disable_reset_volt(struct voltagedomain *voltdm)
780779
sr_class->disable(sr, 1);
781780
}
782781

783-
/**
784-
* omap_sr_register_pmic() - API to register pmic specific info.
785-
* @pmic_data: The structure containing pmic specific data.
786-
*
787-
* This API is to be called from the PMIC specific code to register with
788-
* smartreflex driver pmic specific info. Currently the only info required
789-
* is the smartreflex init on the PMIC side.
790-
*/
791-
void omap_sr_register_pmic(struct omap_sr_pmic_data *pmic_data)
792-
{
793-
if (!pmic_data) {
794-
pr_warn("%s: Trying to register NULL PMIC data structure with smartreflex\n",
795-
__func__);
796-
return;
797-
}
798-
799-
sr_pmic_data = pmic_data;
800-
}
801-
802782
/* PM Debug FS entries to enable and disable smartreflex. */
803783
static int omap_sr_autocomp_show(void *data, u64 *val)
804784
{
@@ -1065,17 +1045,6 @@ static int __init sr_init(void)
10651045
{
10661046
int ret = 0;
10671047

1068-
/*
1069-
* sr_init is a late init. If by then a pmic specific API is not
1070-
* registered either there is no need for anything to be done on
1071-
* the PMIC side or somebody has forgotten to register a PMIC
1072-
* handler. Warn for the second condition.
1073-
*/
1074-
if (sr_pmic_data && sr_pmic_data->sr_pmic_init)
1075-
sr_pmic_data->sr_pmic_init();
1076-
else
1077-
pr_warn("%s: No PMIC hook to init smartreflex\n", __func__);
1078-
10791048
ret = platform_driver_register(&smartreflex_driver);
10801049
if (ret) {
10811050
pr_err("%s: platform driver register failed for SR\n",

include/linux/power/smartreflex.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,6 @@ void omap_sr_enable(struct voltagedomain *voltdm);
303303
void omap_sr_disable(struct voltagedomain *voltdm);
304304
void omap_sr_disable_reset_volt(struct voltagedomain *voltdm);
305305

306-
/* API to register the pmic specific data with the smartreflex driver. */
307-
void omap_sr_register_pmic(struct omap_sr_pmic_data *pmic_data);
308-
309306
/* Smartreflex driver hooks to be called from Smartreflex class driver */
310307
int sr_enable(struct omap_sr *sr, unsigned long volt);
311308
void sr_disable(struct omap_sr *sr);
@@ -320,7 +317,5 @@ static inline void omap_sr_enable(struct voltagedomain *voltdm) {}
320317
static inline void omap_sr_disable(struct voltagedomain *voltdm) {}
321318
static inline void omap_sr_disable_reset_volt(
322319
struct voltagedomain *voltdm) {}
323-
static inline void omap_sr_register_pmic(
324-
struct omap_sr_pmic_data *pmic_data) {}
325320
#endif
326321
#endif

0 commit comments

Comments
 (0)