mfd: as3722: add clock driver as mfd-sub device
Laxman Dewangan [Fri, 8 Nov 2013 09:41:44 +0000 (14:41 +0530)]
Device ams AS3722 supports the one 32KHz clock output. The clock
control support is provided through clock driver.

Add clock driver as mfd sub device to probe the clock driver.

Change-Id: Iff0a67b36ccd4ced86187e31b92c58c9f90bdf96
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/328285
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

drivers/mfd/as3722-core.c

index 8cbe908..e1766c1 100644 (file)
@@ -44,6 +44,7 @@ enum as3722_ids {
        AS3722_RTC_ID,
        AS3722_ADC,
        AS3722_POWER_OFF_ID,
+       AS3722_CLK_ID,
 };
 
 static const struct resource as3722_rtc_resource[] = {
@@ -74,6 +75,10 @@ static struct mfd_cell as3722_devs[] = {
                .id = AS3722_REGULATOR_ID,
        },
        {
+               .name = "as3722-clk",
+               .id = AS3722_CLK_ID,
+       },
+       {
                .name = "as3722-rtc",
                .num_resources = ARRAY_SIZE(as3722_rtc_resource),
                .resources = as3722_rtc_resource,