Skip to content

Commit 96ed104

Browse files
bjdooks-ctShawn Guo
authored and
Shawn Guo
committed
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: Ben Dooks <ben.dooks@codethink.co.uk> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Fixes: b0682d4 ("soc: imx: gpc: use GPC_PGC_DOMAIN_* indexes") Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent 7e5d0bf commit 96ed104

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/soc/imx/gpc.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,13 @@ static struct genpd_power_state imx6_pm_domain_pu_state = {
249249
};
250250

251251
static struct imx_pm_domain imx_gpc_domains[] = {
252-
[GPC_PGC_DOMAIN_ARM] {
252+
[GPC_PGC_DOMAIN_ARM] = {
253253
.base = {
254254
.name = "ARM",
255255
.flags = GENPD_FLAG_ALWAYS_ON,
256256
},
257257
},
258-
[GPC_PGC_DOMAIN_PU] {
258+
[GPC_PGC_DOMAIN_PU] = {
259259
.base = {
260260
.name = "PU",
261261
.power_off = imx6_pm_domain_power_off,
@@ -266,7 +266,7 @@ static struct imx_pm_domain imx_gpc_domains[] = {
266266
.reg_offs = 0x260,
267267
.cntr_pdn_bit = 0,
268268
},
269-
[GPC_PGC_DOMAIN_DISPLAY] {
269+
[GPC_PGC_DOMAIN_DISPLAY] = {
270270
.base = {
271271
.name = "DISPLAY",
272272
.power_off = imx6_pm_domain_power_off,
@@ -275,7 +275,7 @@ static struct imx_pm_domain imx_gpc_domains[] = {
275275
.reg_offs = 0x240,
276276
.cntr_pdn_bit = 4,
277277
},
278-
[GPC_PGC_DOMAIN_PCI] {
278+
[GPC_PGC_DOMAIN_PCI] = {
279279
.base = {
280280
.name = "PCI",
281281
.power_off = imx6_pm_domain_power_off,

0 commit comments

Comments
 (0)