omap2+: voltage: simple clean-ups
Subsystems (3)
cover omap2+: voltage: simple clean-ups
This set contains simple clean-up changes.
There is a TODO in the patchset where i would need specific comments - whether my understanding is right or not.
In expectation of an eminent new patch revision, these changes have only been compiled against omap2plus_defconfig.
BTW, I don't have OMAP4 board with me. Any test, if necessary, would be useful.
Sanjeev Premi (2):
omap3: voltage: remove unnecessary param passing
omap3: voltage: fix variable type and name
arch/arm/mach-omap2/voltage.c | 32 ++++++++++++++++-------- arch/arm/mach-omap2/voltage.h | 3 +- arch/arm/mach-omap2/voltagedomains3xxx_data.c | 5 +--- arch/arm/mach-omap2/voltagedomains44xx_data.c | 6 +---- 4 files changed, 24 insertions(+), 22 deletions(-)
Signature · 1 line
1.7.2.2
PATCH 1/2 omap3: voltage: remove unnecessary param passing
It is not necessary to pass the params prm_mod and prm_irqst_mod to omap_voltage_early_init().
--- arch/arm/mach-omap2/voltage.c | 18 ++++++++++++++---- arch/arm/mach-omap2/voltage.h | 3 +-- arch/arm/mach-omap2/voltagedomains3xxx_data.c | 5 +---- arch/arm/mach-omap2/voltagedomains44xx_data.c | 6 +----- 4 files changed, 17 insertions(+), 15 deletions(-)
arch/arm/mach-omap2/voltage.c +14 -4
@@ -1096,12 +1096,22 @@ int __init omap_voltage_late_init(void) }/* XXX document */ -int __init omap_voltage_early_init (s16 prm_mod,s16 prm_irqst_ocp_mod, -struct omap_vdd_info *omap_vdd_array[], +int __init omap_voltage_early_init (struct omap_vdd_info *omap_vdd_array[],u8 omap_vdd_count) { - prm_mod_offs = prm_mod; - prm_irqst_ocp_mod_offs = prm_irqst_ocp_mod; +if (cpu_is_omap44xx ()) { + prm_mod_offs =OMAP4430_PRM_DEVICE_INST ; + prm_irqst_ocp_mod_offs =OMAP4430_PRM_OCP_SOCKET_INST ; + }else if (cpu_is_omap34xx ()) { + prm_mod_offs =OMAP3430_GR_MOD ; + prm_irqst_ocp_mod_offs =OCP_MOD ; + }else { +/* TODO: +* What should be done for OMAP24xx? +* Would we even reach here? +*/ + } + vdd_info = omap_vdd_array; nr_scalable_vdd = omap_vdd_count;return 0 ;
arch/arm/mach-omap2/voltage.h +1 -2
@@ -151,8 +151,7 @@ struct omap_volt_data *omap_voltage_get_voltdata(struct voltagedomain *voltdm, unsigned long volt);unsigned long omap_voltage_get_nom_volt (struct voltagedomain *voltdm);struct dentry *omap_voltage_get_dbgdir (struct voltagedomain *voltdm); -int __init omap_voltage_early_init (s16 prm_mod,s16 prm_irqst_mod, -struct omap_vdd_info *omap_vdd_array[], +int __init omap_voltage_early_init (struct omap_vdd_info *omap_vdd_array[],u8 omap_vdd_count);#ifdef CONFIG_PM int omap_voltage_register_pmic(struct voltagedomain *voltdm,
arch/arm/mach-omap2/voltagedomains3xxx_data.c +1 -4
@@ -70,8 +70,6 @@ static struct omap_vdd_info *omap3_vdd_info[] = {/* OMAP3 specific voltage init functions */ static int __init omap3xxx_voltage_early_init (void ) { -s16 prm_mod =OMAP3430_GR_MOD ; -s16 prm_irqst_ocp_mod =OCP_MOD ;if (!cpu_is_omap34xx ())return 0 ;
@@ -88,8 +86,7 @@ static int __init omap3xxx_voltage_early_init(void) omap3_vdd2_info.volt_data = omap34xx_vddcore_volt_data; } -return omap_voltage_early_init (prm_mod, prm_irqst_ocp_mod, - omap3_vdd_info, +return omap_voltage_early_init (omap3_vdd_info,ARRAY_SIZE (omap3_vdd_info)); };core_initcall (omap3xxx_voltage_early_init);
arch/arm/mach-omap2/voltagedomains44xx_data.c +1 -5
@@ -81,9 +81,6 @@ static struct omap_vdd_info *omap4_vdd_info[] = {/* OMAP4 specific voltage init functions */ static int __init omap44xx_voltage_early_init (void ) { -s16 prm_mod =OMAP4430_PRM_DEVICE_INST ; -s16 prm_irqst_ocp_mod =OMAP4430_PRM_OCP_SOCKET_INST ; -if (!cpu_is_omap44xx ())return 0 ;
@@ -95,8 +92,7 @@ static int __init omap44xx_voltage_early_init(void) omap4_vdd_iva_info.volt_data = omap44xx_vdd_iva_volt_data; omap4_vdd_core_info.volt_data = omap44xx_vdd_core_volt_data; -return omap_voltage_early_init (prm_mod, prm_irqst_ocp_mod, - omap4_vdd_info, +return omap_voltage_early_init (omap4_vdd_info,ARRAY_SIZE (omap4_vdd_info)); };core_initcall (omap44xx_voltage_early_init);
Signature · 1 line
1.7.2.2
PATCH 2/2 omap3: voltage: fix variable type and name
In reply to Sanjeev PremiIn all usages, variables prm_mod_offs and prm_irqst_ocp_mod_offs are expected to be "u16" but have been declared as "s16".
In addition, renamed prm_irqst_ocp_mod_offs to ocp_sysreg_prm_offs for better association with the TRM. Original name perhaps came from the current usage of this offset to reach PRM_IRQSTATUS_MPU offset.
--- arch/arm/mach-omap2/voltage.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-)
arch/arm/mach-omap2/voltage.c +9 -9
@@ -51,8 +51,8 @@ static struct omap_vdd_info **vdd_info;static int nr_scalable_vdd;/* XXX document */ -static s16 prm_mod_offs; -static s16 prm_irqst_ocp_mod_offs; +static u16 prm_mod_offs; +static u16 ocp_sysreg_prm_offs;static struct dentry *voltage_dir;
@@ -447,8 +447,8 @@ static int vp_forceupdate_scale_voltage(struct omap_vdd_info *vdd,*/ while (timeout++ <VP_TRANXDONE_TIMEOUT ) { vdd->write_reg (vdd->vp_data->prm_irqst_data->tranxdone_status, - prm_irqst_ocp_mod_offs, prm_irqst_reg); -if (!(vdd->read_reg (prm_irqst_ocp_mod_offs, prm_irqst_reg) & + ocp_sysreg_prm_offs, prm_irqst_reg); +if (!(vdd->read_reg (ocp_sysreg_prm_offs, prm_irqst_reg) & vdd->vp_data->prm_irqst_data->tranxdone_status))break ;udelay (1 );
@@ -481,7 +481,7 @@ static int vp_forceupdate_scale_voltage(struct omap_vdd_info *vdd,* Depends on SMPSWAITTIMEMIN/MAX and voltage change */ timeout =0 ; -omap_test_timeout ((vdd->read_reg (prm_irqst_ocp_mod_offs, prm_irqst_reg) & +omap_test_timeout ((vdd->read_reg (ocp_sysreg_prm_offs, prm_irqst_reg) & vdd->vp_data->prm_irqst_data->tranxdone_status),VP_TRANXDONE_TIMEOUT , timeout);if (timeout >=VP_TRANXDONE_TIMEOUT )
@@ -498,8 +498,8 @@ static int vp_forceupdate_scale_voltage(struct omap_vdd_info *vdd, timeout =0 ;while (timeout++ <VP_TRANXDONE_TIMEOUT ) { vdd->write_reg (vdd->vp_data->prm_irqst_data->tranxdone_status, - prm_irqst_ocp_mod_offs, prm_irqst_reg); -if (!(vdd->read_reg (prm_irqst_ocp_mod_offs, prm_irqst_reg) & + ocp_sysreg_prm_offs, prm_irqst_reg); +if (!(vdd->read_reg (ocp_sysreg_prm_offs, prm_irqst_reg) & vdd->vp_data->prm_irqst_data->tranxdone_status))break ;udelay (1 );
@@ -1101,10 +1101,10 @@ int __init omap_voltage_early_init(struct omap_vdd_info *omap_vdd_array[], {if (cpu_is_omap44xx ()) { prm_mod_offs =OMAP4430_PRM_DEVICE_INST ; - prm_irqst_ocp_mod_offs =OMAP4430_PRM_OCP_SOCKET_INST ; + ocp_sysreg_prm_offs =OMAP4430_PRM_OCP_SOCKET_INST ; }else if (cpu_is_omap34xx ()) { prm_mod_offs =OMAP3430_GR_MOD ; - prm_irqst_ocp_mod_offs =OCP_MOD ; + ocp_sysreg_prm_offs =OCP_MOD ; }else {/* TODO: * What should be done for OMAP24xx?
Signature · 1 line
1.7.2.2
Re: [PATCH 1/2] omap3: voltage: remove unnecessary param passing
In reply to Sanjeev PremiQuoted 4 lines · Sanjeev Premi
It is not necessary to pass the params
prm_modandprm_irqst_modtoomap_voltage_early_init().Signed-off-by Sanjeev Premi <[email protected]>
Hi Sanjeev,
I also started working on cleaning some of this up, but I took a slightly different approach[1], namely I make these offsets part of the VDD structure so that this data stays in the data files.
I'm still working on the series, but the work-in-progress is in my pm-wip/voltdm branch, which I expect to post for comment tomorrow.
Kevin
[1] http://git.kernel.org/?p=linux/kernel/git/khilman/linux-omap-pm.git;a=commit;h=185cdf40ad978a466106b52fce9b68ca7081f358
[2] http://git.kernel.org/?p=linux/kernel/git/khilman/linux-omap-pm.git;a=shortlog;h=refs/heads/pm-wip/voltdm
Quoted 99 lines
--- arch/arm/mach-omap2/voltage.c | 18 ++++++++++++++---- arch/arm/mach-omap2/voltage.h | 3 +-- arch/arm/mach-omap2/voltagedomains3xxx_data.c | 5 +---- arch/arm/mach-omap2/voltagedomains44xx_data.c | 6 +----- 4 files changed, 17 insertions(+), 15 deletions(-)arch/arm/mach-omap2/voltage.c +14
-4@@ -1096,12 +1096,22 @@ int __init omap_voltage_late_init(void) }/* XXX document */ -int __init omap_voltage_early_init (s16 prm_mod,s16 prm_irqst_ocp_mod, -struct omap_vdd_info *omap_vdd_array[], +int __init omap_voltage_early_init (struct omap_vdd_info *omap_vdd_array[],u8 omap_vdd_count) { - prm_mod_offs = prm_mod; - prm_irqst_ocp_mod_offs = prm_irqst_ocp_mod; +if (cpu_is_omap44xx ()) { + prm_mod_offs =OMAP4430_PRM_DEVICE_INST ; + prm_irqst_ocp_mod_offs =OMAP4430_PRM_OCP_SOCKET_INST ; + }else if (cpu_is_omap34xx ()) { + prm_mod_offs =OMAP3430_GR_MOD ; + prm_irqst_ocp_mod_offs =OCP_MOD ; + }else { +/* TODO: +* What should be done for OMAP24xx? +* Would we even reach here? +*/ + } + vdd_info = omap_vdd_array; nr_scalable_vdd = omap_vdd_count;return 0 ;arch/arm/mach-omap2/voltage.h +1
-2@@ -151,8 +151,7 @@ struct omap_volt_data *omap_voltage_get_voltdata(struct voltagedomain *voltdm, unsigned long volt);unsigned long omap_voltage_get_nom_volt (struct voltagedomain *voltdm);struct dentry *omap_voltage_get_dbgdir (struct voltagedomain *voltdm); -int __init omap_voltage_early_init (s16 prm_mod,s16 prm_irqst_mod, -struct omap_vdd_info *omap_vdd_array[], +int __init omap_voltage_early_init (struct omap_vdd_info *omap_vdd_array[],u8 omap_vdd_count);#ifdef CONFIG_PM int omap_voltage_register_pmic(struct voltagedomain *voltdm,arch/arm/mach-omap2/voltagedomains3xxx_data.c +1
-4@@ -70,8 +70,6 @@ static struct omap_vdd_info *omap3_vdd_info[] = {/* OMAP3 specific voltage init functions */ static int __init omap3xxx_voltage_early_init (void ) { -s16 prm_mod =OMAP3430_GR_MOD ; -s16 prm_irqst_ocp_mod =OCP_MOD ;if (!cpu_is_omap34xx ())return 0 ;@@ -88,8 +86,7 @@ static int __init omap3xxx_voltage_early_init(void) omap3_vdd2_info.volt_data = omap34xx_vddcore_volt_data; } -return omap_voltage_early_init (prm_mod, prm_irqst_ocp_mod, - omap3_vdd_info, +return omap_voltage_early_init (omap3_vdd_info,ARRAY_SIZE (omap3_vdd_info)); };core_initcall (omap3xxx_voltage_early_init);arch/arm/mach-omap2/voltagedomains44xx_data.c +1
-5@@ -81,9 +81,6 @@ static struct omap_vdd_info *omap4_vdd_info[] = {/* OMAP4 specific voltage init functions */ static int __init omap44xx_voltage_early_init (void ) { -s16 prm_mod =OMAP4430_PRM_DEVICE_INST ; -s16 prm_irqst_ocp_mod =OMAP4430_PRM_OCP_SOCKET_INST ; -if (!cpu_is_omap44xx ())return 0 ;@@ -95,8 +92,7 @@ static int __init omap44xx_voltage_early_init(void) omap4_vdd_iva_info.volt_data = omap44xx_vdd_iva_volt_data; omap4_vdd_core_info.volt_data = omap44xx_vdd_core_volt_data; -return omap_voltage_early_init (prm_mod, prm_irqst_ocp_mod, - omap4_vdd_info, +return omap_voltage_early_init (omap4_vdd_info,ARRAY_SIZE (omap4_vdd_info)); };core_initcall (omap44xx_voltage_early_init);
Re: [PATCH 2/2] omap3: voltage: fix variable type and name
In reply to Sanjeev PremiQuoted 2 lines · Sanjeev Premi
In all usages, variables
prm_mod_offsandprm_irqst_ocp_mod_offsare expected to be "u16" but have been declared as "s16".
What kind of problem is that causing?
Kevin
Quoted 69 lines
In addition, renamed
prm_irqst_ocp_mod_offstoocp_sysreg_prm_offsfor better association with the TRM. Original name perhaps came from the current usage of this offset to reachPRM_IRQSTATUS_MPUoffset.Signed-off-by Sanjeev Premi <[email protected]>--- arch/arm/mach-omap2/voltage.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-)arch/arm/mach-omap2/voltage.c +9
-9@@ -51,8 +51,8 @@ static struct omap_vdd_info **vdd_info;static int nr_scalable_vdd;/* XXX document */ -static s16 prm_mod_offs; -static s16 prm_irqst_ocp_mod_offs; +static u16 prm_mod_offs; +static u16 ocp_sysreg_prm_offs;static struct dentry *voltage_dir;@@ -447,8 +447,8 @@ static int vp_forceupdate_scale_voltage(struct omap_vdd_info *vdd,*/ while (timeout++ <VP_TRANXDONE_TIMEOUT ) { vdd->write_reg (vdd->vp_data->prm_irqst_data->tranxdone_status, - prm_irqst_ocp_mod_offs, prm_irqst_reg); -if (!(vdd->read_reg (prm_irqst_ocp_mod_offs, prm_irqst_reg) & + ocp_sysreg_prm_offs, prm_irqst_reg); +if (!(vdd->read_reg (ocp_sysreg_prm_offs, prm_irqst_reg) & vdd->vp_data->prm_irqst_data->tranxdone_status))break ;udelay (1 );@@ -481,7 +481,7 @@ static int vp_forceupdate_scale_voltage(struct omap_vdd_info *vdd,* Depends on SMPSWAITTIMEMIN/MAX and voltage change */ timeout =0 ; -omap_test_timeout ((vdd->read_reg (prm_irqst_ocp_mod_offs, prm_irqst_reg) & +omap_test_timeout ((vdd->read_reg (ocp_sysreg_prm_offs, prm_irqst_reg) & vdd->vp_data->prm_irqst_data->tranxdone_status),VP_TRANXDONE_TIMEOUT , timeout);if (timeout >=VP_TRANXDONE_TIMEOUT )@@ -498,8 +498,8 @@ static int vp_forceupdate_scale_voltage(struct omap_vdd_info *vdd, timeout =0 ;while (timeout++ <VP_TRANXDONE_TIMEOUT ) { vdd->write_reg (vdd->vp_data->prm_irqst_data->tranxdone_status, - prm_irqst_ocp_mod_offs, prm_irqst_reg); -if (!(vdd->read_reg (prm_irqst_ocp_mod_offs, prm_irqst_reg) & + ocp_sysreg_prm_offs, prm_irqst_reg); +if (!(vdd->read_reg (ocp_sysreg_prm_offs, prm_irqst_reg) & vdd->vp_data->prm_irqst_data->tranxdone_status))break ;udelay (1 );@@ -1101,10 +1101,10 @@ int __init omap_voltage_early_init(struct omap_vdd_info *omap_vdd_array[], {if (cpu_is_omap44xx ()) { prm_mod_offs =OMAP4430_PRM_DEVICE_INST ; - prm_irqst_ocp_mod_offs =OMAP4430_PRM_OCP_SOCKET_INST ; + ocp_sysreg_prm_offs =OMAP4430_PRM_OCP_SOCKET_INST ; }else if (cpu_is_omap34xx ()) { prm_mod_offs =OMAP3430_GR_MOD ; - prm_irqst_ocp_mod_offs =OCP_MOD ; + ocp_sysreg_prm_offs =OCP_MOD ; }else {/* TODO: * What should be done for OMAP24xx?
RE: [PATCH 2/2] omap3: voltage: fix variable type and name
Quoted 7 lines
-----Original Message-----
From: Hilman, Kevin
Sent: Friday, March 18, 2011 1:42 AM
To: Premi, Sanjeev
Cc: [email protected]
Subject: Re: [PATCH 2/2] omap3: voltage: fix variable type and name
Quoted 6 lines
Quoted 2 lines · Sanjeev Premi
In all usages, variables
prm_mod_offsandprm_irqst_ocp_mod_offsare expected to be "u16" but have been declared as "s16".What kind of problem is that causing?
[sp] No, it wasn't causing any problems 0 because offset value wouldn't
reach the signed / unsigned limits; but didn't seem right while reading the code.
~sanjeev
Quoted 7 lines
Kevin
Quoted 4 lines
In addition, renamed
prm_irqst_ocp_mod_offstoocp_sysreg_prm_offsfor better association with the TRM. Original name perhaps came from the current usage of this offset to reachPRM_IRQSTATUS_MPUoffset.
[snip]...[snip]
RE: [PATCH 1/2] omap3: voltage: remove unnecessary param passing
In reply to Kevin HilmanQuoted 22 lines
-----Original Message-----
From: Hilman, Kevin
Sent: Friday, March 18, 2011 1:41 AM
To: Premi, Sanjeev
Cc: [email protected]
Subject: Re: [PATCH 1/2] omap3: voltage: remove unnecessary param passingQuoted 4 lines · Sanjeev Premi
It is not necessary to pass the params
prm_modandprm_irqst_modtoomap_voltage_early_init().Signed-off-by Sanjeev Premi <[email protected]>Hi Sanjeev,
I also started working on cleaning some of this up, but I took a slightly different approach[1], namely I make these offsets part of the
VDD structure so that this data stays in the data files.
Quoted 8 lines
I'm still working on the series, but the work-in-progress is in my pm-wip/voltdm branch, which I expect to post for comment tomorrow.
Kevin
[1]
http://git.kernel.org/?p=linux/kernel/git/khilman/linux-omap-p
m.git;a=commit;h=185cdf40ad978a466106b52fce9b68ca7081f358
[sp] I had considered this, but the PRM offset wouldn't change for
each VDD. Therefore, opted to keep static in the file just as few other files e.g. control.c
~sanjeev
Quoted 2 lines
[2]
http://git.kernel.org/?p=linux/kernel/git/khilman/linux-omap-p
m.git;a=shortlog;h=refs/heads/pm-wip/voltdm
Quoted 116 lines
Quoted 3 lines
--- arch/arm/mach-omap2/voltage.c | 18++++++++++++++----
Review
Quoted 6 lines
arch/arm/mach-omap2/voltage.h | 3 +-- arch/arm/mach-omap2/voltagedomains3xxx_data.c | 5 +---- arch/arm/mach-omap2/voltagedomains44xx_data.c | 6 +----- 4 files changed, 17 insertions(+), 15 deletions(-)(quoted diff) +0
-0
b/arch/arm/mach-omap2/voltage.carch/arm/mach-omap2/voltage.c int __init omap_voltage_late_init(void) · line 1099
Quoted 8 lines
index c6facf7..ce3098a 100644
arch/arm/mach-omap2/voltage.c +0
-1@@ -1096,12 +1096,22 @@ int __init omap_voltage_late_init(void) }/* XXX document */ -int __init omap_voltage_early_init(s16 prm_mod, s16
prm_irqst_ocp_mod,arch/arm/mach-omap2/voltage.c int __init omap_voltage_late_init(void) · line 1100
Quoted 1 line
arch/arm/mach-omap2/voltage.c +0
-1-struct omap_vdd_info *omap_vdd_array[],
arch/arm/mach-omap2/voltage.c int __init omap_voltage_late_init(void) · line 1099
Quoted 1 line
arch/arm/mach-omap2/voltage.c +1
-0+int __init omap_voltage_early_init(struct omap_vdd_info*omap_vdd_array[],
Review
Quoted 21 lines
arch/arm/mach-omap2/voltage.c +13
-2u8 omap_vdd_count) { - prm_mod_offs = prm_mod; - prm_irqst_ocp_mod_offs = prm_irqst_ocp_mod; +if (cpu_is_omap44xx ()) { + prm_mod_offs =OMAP4430_PRM_DEVICE_INST ; + prm_irqst_ocp_mod_offs =OMAP4430_PRM_OCP_SOCKET_INST ; + }else if (cpu_is_omap34xx ()) { + prm_mod_offs =OMAP3430_GR_MOD ; + prm_irqst_ocp_mod_offs =OCP_MOD ; + }else { +/* TODO: +* What should be done for OMAP24xx? +* Would we even reach here? +*/ + } + vdd_info = omap_vdd_array; nr_scalable_vdd = omap_vdd_count;return 0 ;(quoted diff) +0
-0
b/arch/arm/mach-omap2/voltage.harch/arm/mach-omap2/voltage.h struct omap_volt_data
Quoted 4 lines
index e9f5408..b56530e 100644
arch/arm/mach-omap2/voltage.h +0
-0@@ -151,8 +151,7 @@ struct omap_volt_data*omap_voltage_get_voltdata(struct voltagedomain *voltdm,
arch/arm/mach-omap2/voltage.h struct omap_volt_data · line 152
Quoted 2 lines
arch/arm/mach-omap2/voltage.h +0
-0unsigned long volt); unsigned long omap_voltage_get_nom_volt(structvoltagedomain *voltdm);
arch/arm/mach-omap2/voltage.h struct omap_volt_data · line 153
Quoted 1 line
arch/arm/mach-omap2/voltage.h +0
-0struct dentry *omap_voltage_get_dbgdir(structvoltagedomain *voltdm);
arch/arm/mach-omap2/voltage.h struct omap_volt_data · line 155
Quoted 2 lines
arch/arm/mach-omap2/voltage.h +0
-2-int __init omap_voltage_early_init (s16 prm_mod,s16 prm_irqst_mod, - struct omap_vdd_info*omap_vdd_array[],
arch/arm/mach-omap2/voltage.h struct omap_volt_data · line 154
Quoted 1 line
arch/arm/mach-omap2/voltage.h +1
-0+int __init omap_voltage_early_init(struct omap_vdd_info*omap_vdd_array[],
Review
Quoted 4 lines
arch/arm/mach-omap2/voltage.h +0
-0u8 omap_vdd_count);#ifdef CONFIG_PM int omap_voltage_register_pmic(struct voltagedomain *voltdm,(quoted diff) +0
-0
b/arch/arm/mach-omap2/voltagedomains3xxx_data.carch/arm/mach-omap2/voltagedomains3xxx_data.c static int __init
Quoted 13 lines
index def230f..6f6999d 100644
arch/arm/mach-omap2/voltagedomains3xxx_data.c +0
-2@@ -70,8 +70,6 @@ static struct omap_vdd_info *omap3_vdd_info[] = {/* OMAP3 specific voltage init functions */ static int __init omap3xxx_voltage_early_init (void ) { -s16 prm_mod =OMAP3430_GR_MOD ; -s16 prm_irqst_ocp_mod =OCP_MOD ;if (!cpu_is_omap34xx ())return 0 ;@@ -88,8 +86,7 @@ static int __init
omap3xxx_voltage_early_init(void)Review
Quoted 10 lines
arch/arm/mach-omap2/voltagedomains3xxx_data.c +1
-2omap3_vdd2_info.volt_data = omap34xx_vddcore_volt_data; } -return omap_voltage_early_init (prm_mod, prm_irqst_ocp_mod, - omap3_vdd_info, +return omap_voltage_early_init (omap3_vdd_info,ARRAY_SIZE (omap3_vdd_info)); };core_initcall (omap3xxx_voltage_early_init);(quoted diff) +0
-0
b/arch/arm/mach-omap2/voltagedomains44xx_data.carch/arm/mach-omap2/voltagedomains44xx_data.c static int __init
Quoted 14 lines
index cb64996..208a67d 100644
arch/arm/mach-omap2/voltagedomains44xx_data.c +0
-3@@ -81,9 +81,6 @@ static struct omap_vdd_info *omap4_vdd_info[] = {/* OMAP4 specific voltage init functions */ static int __init omap44xx_voltage_early_init (void ) { -s16 prm_mod =OMAP4430_PRM_DEVICE_INST ; -s16 prm_irqst_ocp_mod =OMAP4430_PRM_OCP_SOCKET_INST ; -if (!cpu_is_omap44xx ())return 0 ;@@ -95,8 +92,7 @@ static int __init
omap44xx_voltage_early_init(void)Quoted 9 lines
arch/arm/mach-omap2/voltagedomains44xx_data.c +1
-2omap4_vdd_iva_info.volt_data = omap44xx_vdd_iva_volt_data; omap4_vdd_core_info.volt_data = omap44xx_vdd_core_volt_data; -return omap_voltage_early_init (prm_mod, prm_irqst_ocp_mod, - omap4_vdd_info, +return omap_voltage_early_init (omap4_vdd_info,ARRAY_SIZE (omap4_vdd_info)); };core_initcall (omap44xx_voltage_early_init);