|
37 | 37 | static LIST_HEAD(sr_list); |
38 | 38 |
|
39 | 39 | static struct omap_sr_class_data *sr_class; |
40 | | -static struct omap_sr_pmic_data *sr_pmic_data; |
41 | 40 | static struct dentry *sr_dbg_dir; |
42 | 41 |
|
43 | 42 | 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) |
780 | 779 | sr_class->disable(sr, 1); |
781 | 780 | } |
782 | 781 |
|
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 | | - |
802 | 782 | /* PM Debug FS entries to enable and disable smartreflex. */ |
803 | 783 | static int omap_sr_autocomp_show(void *data, u64 *val) |
804 | 784 | { |
@@ -1065,17 +1045,6 @@ static int __init sr_init(void) |
1065 | 1045 | { |
1066 | 1046 | int ret = 0; |
1067 | 1047 |
|
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 | | - |
1079 | 1048 | ret = platform_driver_register(&smartreflex_driver); |
1080 | 1049 | if (ret) { |
1081 | 1050 | pr_err("%s: platform driver register failed for SR\n", |
|
0 commit comments