Skip to content

Commit 798bd17

Browse files
committed
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 <[email protected]> Cc: Tero Kristo <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 7f0d078 commit 798bd17

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

arch/arm/mach-omap2/omap_hwmod.c

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3241,9 +3241,10 @@ static int omap_hwmod_init_regbits(struct device *dev,
32413241
* @sysc_offs: sysc register offset
32423242
* @syss_offs: syss register offset
32433243
*/
3244-
int omap_hwmod_init_reg_offs(struct device *dev,
3245-
const struct ti_sysc_module_data *data,
3246-
s32 *rev_offs, s32 *sysc_offs, s32 *syss_offs)
3244+
static int omap_hwmod_init_reg_offs(struct device *dev,
3245+
const struct ti_sysc_module_data *data,
3246+
s32 *rev_offs, s32 *sysc_offs,
3247+
s32 *syss_offs)
32473248
{
32483249
*rev_offs = -ENODEV;
32493250
*sysc_offs = 0;
@@ -3267,9 +3268,9 @@ int omap_hwmod_init_reg_offs(struct device *dev,
32673268
* @data: module data
32683269
* @sysc_flags: module configuration
32693270
*/
3270-
int omap_hwmod_init_sysc_flags(struct device *dev,
3271-
const struct ti_sysc_module_data *data,
3272-
u32 *sysc_flags)
3271+
static int omap_hwmod_init_sysc_flags(struct device *dev,
3272+
const struct ti_sysc_module_data *data,
3273+
u32 *sysc_flags)
32733274
{
32743275
*sysc_flags = 0;
32753276

@@ -3341,9 +3342,9 @@ int omap_hwmod_init_sysc_flags(struct device *dev,
33413342
* @data: module data
33423343
* @idlemodes: module supported idle modes
33433344
*/
3344-
int omap_hwmod_init_idlemodes(struct device *dev,
3345-
const struct ti_sysc_module_data *data,
3346-
u32 *idlemodes)
3345+
static int omap_hwmod_init_idlemodes(struct device *dev,
3346+
const struct ti_sysc_module_data *data,
3347+
u32 *idlemodes)
33473348
{
33483349
*idlemodes = 0;
33493350

@@ -3434,11 +3435,12 @@ static int omap_hwmod_check_module(struct device *dev,
34343435
*
34353436
* Note that the allocations here cannot use devm as ti-sysc can rebind.
34363437
*/
3437-
int omap_hwmod_allocate_module(struct device *dev, struct omap_hwmod *oh,
3438-
const struct ti_sysc_module_data *data,
3439-
struct sysc_regbits *sysc_fields,
3440-
s32 rev_offs, s32 sysc_offs, s32 syss_offs,
3441-
u32 sysc_flags, u32 idlemodes)
3438+
static int omap_hwmod_allocate_module(struct device *dev, struct omap_hwmod *oh,
3439+
const struct ti_sysc_module_data *data,
3440+
struct sysc_regbits *sysc_fields,
3441+
s32 rev_offs, s32 sysc_offs,
3442+
s32 syss_offs, u32 sysc_flags,
3443+
u32 idlemodes)
34423444
{
34433445
struct omap_hwmod_class_sysconfig *sysc;
34443446
struct omap_hwmod_class *class;

0 commit comments

Comments
 (0)