diff options
author | Tony Lindgren <tony@atomide.com> | 2019-03-21 14:00:21 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2019-03-26 14:26:25 -0400 |
commit | 798bd175ab0d8024652ddba2cacaba6768c63c30 (patch) | |
tree | b6bc8e9b60e7702254fdbbbfbc6f6415642ee5e1 /arch/arm/mach-omap2/omap_hwmod.c | |
parent | 7f0d078667a494466991aa7133f49594f32ff6a2 (diff) |
ARM: OMAP2+: Make interconnect target module allocation functions static
Only omap_hwmod_init_module() gets called, the rest of the interconnect
target module allocation functions can be static.
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.c')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 21afaf630caa..b88cf32cf8a9 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
@@ -3241,9 +3241,10 @@ static int omap_hwmod_init_regbits(struct device *dev, | |||
3241 | * @sysc_offs: sysc register offset | 3241 | * @sysc_offs: sysc register offset |
3242 | * @syss_offs: syss register offset | 3242 | * @syss_offs: syss register offset |
3243 | */ | 3243 | */ |
3244 | int omap_hwmod_init_reg_offs(struct device *dev, | 3244 | static int omap_hwmod_init_reg_offs(struct device *dev, |
3245 | const struct ti_sysc_module_data *data, | 3245 | const struct ti_sysc_module_data *data, |
3246 | s32 *rev_offs, s32 *sysc_offs, s32 *syss_offs) | 3246 | s32 *rev_offs, s32 *sysc_offs, |
3247 | s32 *syss_offs) | ||
3247 | { | 3248 | { |
3248 | *rev_offs = -ENODEV; | 3249 | *rev_offs = -ENODEV; |
3249 | *sysc_offs = 0; | 3250 | *sysc_offs = 0; |
@@ -3267,9 +3268,9 @@ int omap_hwmod_init_reg_offs(struct device *dev, | |||
3267 | * @data: module data | 3268 | * @data: module data |
3268 | * @sysc_flags: module configuration | 3269 | * @sysc_flags: module configuration |
3269 | */ | 3270 | */ |
3270 | int omap_hwmod_init_sysc_flags(struct device *dev, | 3271 | static int omap_hwmod_init_sysc_flags(struct device *dev, |
3271 | const struct ti_sysc_module_data *data, | 3272 | const struct ti_sysc_module_data *data, |
3272 | u32 *sysc_flags) | 3273 | u32 *sysc_flags) |
3273 | { | 3274 | { |
3274 | *sysc_flags = 0; | 3275 | *sysc_flags = 0; |
3275 | 3276 | ||
@@ -3341,9 +3342,9 @@ int omap_hwmod_init_sysc_flags(struct device *dev, | |||
3341 | * @data: module data | 3342 | * @data: module data |
3342 | * @idlemodes: module supported idle modes | 3343 | * @idlemodes: module supported idle modes |
3343 | */ | 3344 | */ |
3344 | int omap_hwmod_init_idlemodes(struct device *dev, | 3345 | static int omap_hwmod_init_idlemodes(struct device *dev, |
3345 | const struct ti_sysc_module_data *data, | 3346 | const struct ti_sysc_module_data *data, |
3346 | u32 *idlemodes) | 3347 | u32 *idlemodes) |
3347 | { | 3348 | { |
3348 | *idlemodes = 0; | 3349 | *idlemodes = 0; |
3349 | 3350 | ||
@@ -3434,11 +3435,12 @@ static int omap_hwmod_check_module(struct device *dev, | |||
3434 | * | 3435 | * |
3435 | * Note that the allocations here cannot use devm as ti-sysc can rebind. | 3436 | * Note that the allocations here cannot use devm as ti-sysc can rebind. |
3436 | */ | 3437 | */ |
3437 | int omap_hwmod_allocate_module(struct device *dev, struct omap_hwmod *oh, | 3438 | static int omap_hwmod_allocate_module(struct device *dev, struct omap_hwmod *oh, |
3438 | const struct ti_sysc_module_data *data, | 3439 | const struct ti_sysc_module_data *data, |
3439 | struct sysc_regbits *sysc_fields, | 3440 | struct sysc_regbits *sysc_fields, |
3440 | s32 rev_offs, s32 sysc_offs, s32 syss_offs, | 3441 | s32 rev_offs, s32 sysc_offs, |
3441 | u32 sysc_flags, u32 idlemodes) | 3442 | s32 syss_offs, u32 sysc_flags, |
3443 | u32 idlemodes) | ||
3442 | { | 3444 | { |
3443 | struct omap_hwmod_class_sysconfig *sysc; | 3445 | struct omap_hwmod_class_sysconfig *sysc; |
3444 | struct omap_hwmod_class *class; | 3446 | struct omap_hwmod_class *class; |