File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -3198,7 +3198,6 @@ static __initdata struct omap_hwmod *omap3xxx_hwmods[] = {
3198
3198
& omap3xxx_timer9_hwmod ,
3199
3199
& omap3xxx_timer10_hwmod ,
3200
3200
& omap3xxx_timer11_hwmod ,
3201
- & omap3xxx_timer12_hwmod ,
3202
3201
3203
3202
& omap3xxx_wd_timer2_hwmod ,
3204
3203
& omap3xxx_uart1_hwmod ,
@@ -3245,6 +3244,12 @@ static __initdata struct omap_hwmod *omap3xxx_hwmods[] = {
3245
3244
NULL ,
3246
3245
};
3247
3246
3247
+ /* GP-only hwmods */
3248
+ static __initdata struct omap_hwmod * omap3xxx_gp_hwmods [] = {
3249
+ & omap3xxx_timer12_hwmod ,
3250
+ NULL
3251
+ };
3252
+
3248
3253
/* 3430ES1-only hwmods */
3249
3254
static __initdata struct omap_hwmod * omap3430es1_hwmods [] = {
3250
3255
& omap3430es1_dss_core_hwmod ,
@@ -3296,6 +3301,13 @@ int __init omap3xxx_hwmod_init(void)
3296
3301
if (r < 0 )
3297
3302
return r ;
3298
3303
3304
+ /* Register GP-only hwmods. */
3305
+ if (omap_type () == OMAP2_DEVICE_TYPE_GP ) {
3306
+ r = omap_hwmod_register (omap3xxx_gp_hwmods );
3307
+ if (r < 0 )
3308
+ return r ;
3309
+ }
3310
+
3299
3311
rev = omap_rev ();
3300
3312
3301
3313
/*
You can’t perform that action at this time.
0 commit comments