Skip to content

Commit d5e4eee

Browse files
Uwe Kleine-Königsuryasaimadhu
authored andcommitted
EDAC/ppc_4xx: Reorder symbols to get rid of a few forward declarations
When moving the definition of ppc4xx_edac_driver further down, the forward declarations can just be dropped. Do this to reduce needless line repetition. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lore.kernel.org/r/20220917232013.489931-1-u.kleine-koenig@pengutronix.de
1 parent d42d6f5 commit d5e4eee

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

drivers/edac/ppc4xx_edac.c

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,6 @@ struct ppc4xx_ecc_status {
178178
u32 wmirq;
179179
};
180180

181-
/* Function Prototypes */
182-
183-
static int ppc4xx_edac_probe(struct platform_device *device);
184-
static int ppc4xx_edac_remove(struct platform_device *device);
185-
186181
/* Global Variables */
187182

188183
/*
@@ -197,15 +192,6 @@ static const struct of_device_id ppc4xx_edac_match[] = {
197192
};
198193
MODULE_DEVICE_TABLE(of, ppc4xx_edac_match);
199194

200-
static struct platform_driver ppc4xx_edac_driver = {
201-
.probe = ppc4xx_edac_probe,
202-
.remove = ppc4xx_edac_remove,
203-
.driver = {
204-
.name = PPC4XX_EDAC_MODULE_NAME,
205-
.of_match_table = ppc4xx_edac_match,
206-
},
207-
};
208-
209195
/*
210196
* TODO: The row and channel parameters likely need to be dynamically
211197
* set based on the aforementioned variant controller realizations.
@@ -1391,6 +1377,15 @@ ppc4xx_edac_opstate_init(void)
13911377
EDAC_OPSTATE_UNKNOWN_STR)));
13921378
}
13931379

1380+
static struct platform_driver ppc4xx_edac_driver = {
1381+
.probe = ppc4xx_edac_probe,
1382+
.remove = ppc4xx_edac_remove,
1383+
.driver = {
1384+
.name = PPC4XX_EDAC_MODULE_NAME,
1385+
.of_match_table = ppc4xx_edac_match,
1386+
},
1387+
};
1388+
13941389
/**
13951390
* ppc4xx_edac_init - driver/module insertion entry point
13961391
*

0 commit comments

Comments
 (0)