]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-arm/arch-omap/clockdomain.h
OMAP2/3 clockdomains: combine pwrdm, pwrdm_name into union in struct clockdomain
[linux-2.6-omap-h63xx.git] / include / asm-arm / arch-omap / clockdomain.h
index d2a4551c9fff80edd39ae92b87a617250fceb779..b58bb73b5895b1973e10c901d43ec064185460da 100644 (file)
  */
 struct clkdm_pwrdm_autodep {
 
-       /* Name of the powerdomain to add a wkdep/sleepdep on */
-       const char *pwrdm_name;
+       union {
+               /* Name of the powerdomain to add a wkdep/sleepdep on */
+               const char *name;
 
-       /* Powerdomain pointer (looked up at clkdm_init() time) */
-       struct powerdomain *pwrdm;
+               /* Powerdomain pointer (looked up at clkdm_init() time) */
+               struct powerdomain *ptr;
+       } pwrdm;
 
        /* OMAP chip types that this clockdomain dep is valid on */
        const struct omap_chip_id omap_chip;
@@ -64,8 +66,13 @@ struct clockdomain {
        /* Clockdomain name */
        const char *name;
 
-       /* Powerdomain enclosing this clockdomain */
-       const char *pwrdm_name;
+       union {
+               /* Powerdomain enclosing this clockdomain */
+               const char *name;
+
+               /* Powerdomain pointer assigned at clkdm_register() */
+               struct powerdomain *ptr;
+       } pwrdm;
 
        /* CLKTRCTRL/AUTOSTATE field mask in CM_CLKSTCTRL reg */
        const u16 clktrctrl_mask;
@@ -79,9 +86,6 @@ struct clockdomain {
        /* Usecount tracking */
        atomic_t usecount;
 
-       /* Powerdomain pointer assigned at clkdm_register() */
-       struct powerdomain *pwrdm;
-
        struct list_head node;
 
 };