Commit 96ed1044 authored by Ben Dooks's avatar Ben Dooks Committed by Shawn Guo

soc: imx: gpc: fix initialiser format

Make the initialiers in imx_gpc_domains C99 format to fix the
following sparse warnings:

drivers/soc/imx/gpc.c:252:30: warning: obsolete array initializer, use C99 syntax
drivers/soc/imx/gpc.c:258:29: warning: obsolete array initializer, use C99 syntax
drivers/soc/imx/gpc.c:269:34: warning: obsolete array initializer, use C99 syntax
drivers/soc/imx/gpc.c:278:30: warning: obsolete array initializer, use C99 syntax
Signed-off-by: default avatarBen Dooks <ben.dooks@codethink.co.uk>
Reviewed-by: default avatarLucas Stach <l.stach@pengutronix.de>
Fixes: b0682d48 ("soc: imx: gpc: use GPC_PGC_DOMAIN_* indexes")
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 7e5d0bf6
...@@ -249,13 +249,13 @@ static struct genpd_power_state imx6_pm_domain_pu_state = { ...@@ -249,13 +249,13 @@ static struct genpd_power_state imx6_pm_domain_pu_state = {
}; };
static struct imx_pm_domain imx_gpc_domains[] = { static struct imx_pm_domain imx_gpc_domains[] = {
[GPC_PGC_DOMAIN_ARM] { [GPC_PGC_DOMAIN_ARM] = {
.base = { .base = {
.name = "ARM", .name = "ARM",
.flags = GENPD_FLAG_ALWAYS_ON, .flags = GENPD_FLAG_ALWAYS_ON,
}, },
}, },
[GPC_PGC_DOMAIN_PU] { [GPC_PGC_DOMAIN_PU] = {
.base = { .base = {
.name = "PU", .name = "PU",
.power_off = imx6_pm_domain_power_off, .power_off = imx6_pm_domain_power_off,
...@@ -266,7 +266,7 @@ static struct imx_pm_domain imx_gpc_domains[] = { ...@@ -266,7 +266,7 @@ static struct imx_pm_domain imx_gpc_domains[] = {
.reg_offs = 0x260, .reg_offs = 0x260,
.cntr_pdn_bit = 0, .cntr_pdn_bit = 0,
}, },
[GPC_PGC_DOMAIN_DISPLAY] { [GPC_PGC_DOMAIN_DISPLAY] = {
.base = { .base = {
.name = "DISPLAY", .name = "DISPLAY",
.power_off = imx6_pm_domain_power_off, .power_off = imx6_pm_domain_power_off,
...@@ -275,7 +275,7 @@ static struct imx_pm_domain imx_gpc_domains[] = { ...@@ -275,7 +275,7 @@ static struct imx_pm_domain imx_gpc_domains[] = {
.reg_offs = 0x240, .reg_offs = 0x240,
.cntr_pdn_bit = 4, .cntr_pdn_bit = 4,
}, },
[GPC_PGC_DOMAIN_PCI] { [GPC_PGC_DOMAIN_PCI] = {
.base = { .base = {
.name = "PCI", .name = "PCI",
.power_off = imx6_pm_domain_power_off, .power_off = imx6_pm_domain_power_off,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment