diff options
Diffstat (limited to 'arch/arm/mach-omap2/sr_device.c')
-rw-r--r-- | arch/arm/mach-omap2/sr_device.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/arch/arm/mach-omap2/sr_device.c b/arch/arm/mach-omap2/sr_device.c index 10d3c5ee8018..9f43fcc05d3e 100644 --- a/arch/arm/mach-omap2/sr_device.c +++ b/arch/arm/mach-omap2/sr_device.c | |||
@@ -31,14 +31,6 @@ | |||
31 | 31 | ||
32 | static bool sr_enable_on_init; | 32 | static bool sr_enable_on_init; |
33 | 33 | ||
34 | static struct omap_device_pm_latency omap_sr_latency[] = { | ||
35 | { | ||
36 | .deactivate_func = omap_device_idle_hwmods, | ||
37 | .activate_func = omap_device_enable_hwmods, | ||
38 | .flags = OMAP_DEVICE_LATENCY_AUTO_ADJUST | ||
39 | }, | ||
40 | }; | ||
41 | |||
42 | /* Read EFUSE values from control registers for OMAP3430 */ | 34 | /* Read EFUSE values from control registers for OMAP3430 */ |
43 | static void __init sr_set_nvalues(struct omap_volt_data *volt_data, | 35 | static void __init sr_set_nvalues(struct omap_volt_data *volt_data, |
44 | struct omap_sr_data *sr_data) | 36 | struct omap_sr_data *sr_data) |
@@ -80,7 +72,7 @@ static void __init sr_set_nvalues(struct omap_volt_data *volt_data, | |||
80 | static int sr_dev_init(struct omap_hwmod *oh, void *user) | 72 | static int sr_dev_init(struct omap_hwmod *oh, void *user) |
81 | { | 73 | { |
82 | struct omap_sr_data *sr_data; | 74 | struct omap_sr_data *sr_data; |
83 | struct omap_device *od; | 75 | struct platform_device *pdev; |
84 | struct omap_volt_data *volt_data; | 76 | struct omap_volt_data *volt_data; |
85 | char *name = "smartreflex"; | 77 | char *name = "smartreflex"; |
86 | static int i; | 78 | static int i; |
@@ -102,7 +94,7 @@ static int sr_dev_init(struct omap_hwmod *oh, void *user) | |||
102 | sr_data->senn_mod = 0x1; | 94 | sr_data->senn_mod = 0x1; |
103 | sr_data->senp_mod = 0x1; | 95 | sr_data->senp_mod = 0x1; |
104 | 96 | ||
105 | sr_data->voltdm = omap_voltage_domain_lookup(oh->vdd_name); | 97 | sr_data->voltdm = voltdm_lookup(oh->vdd_name); |
106 | if (IS_ERR(sr_data->voltdm)) { | 98 | if (IS_ERR(sr_data->voltdm)) { |
107 | pr_err("%s: Unable to get voltage domain pointer for VDD %s\n", | 99 | pr_err("%s: Unable to get voltage domain pointer for VDD %s\n", |
108 | __func__, oh->vdd_name); | 100 | __func__, oh->vdd_name); |
@@ -120,10 +112,9 @@ static int sr_dev_init(struct omap_hwmod *oh, void *user) | |||
120 | 112 | ||
121 | sr_data->enable_on_init = sr_enable_on_init; | 113 | sr_data->enable_on_init = sr_enable_on_init; |
122 | 114 | ||
123 | od = omap_device_build(name, i, oh, sr_data, sizeof(*sr_data), | 115 | pdev = omap_device_build(name, i, oh, sr_data, sizeof(*sr_data), |
124 | omap_sr_latency, | 116 | NULL, 0, 0); |
125 | ARRAY_SIZE(omap_sr_latency), 0); | 117 | if (IS_ERR(pdev)) |
126 | if (IS_ERR(od)) | ||
127 | pr_warning("%s: Could not build omap_device for %s: %s.\n\n", | 118 | pr_warning("%s: Could not build omap_device for %s: %s.\n\n", |
128 | __func__, name, oh->name); | 119 | __func__, name, oh->name); |
129 | exit: | 120 | exit: |