Commit b877763ea01d740f6c62a35c45b7351fec9c288d

Authored by Mauro Carvalho Chehab
1 parent 5b889e379f

edac/ppc4xx_edac: Fix compilation

It seems that nobody is cross-compiling for this arch anymore...

drivers/edac/ppc4xx_edac.c: In function 'ppc4xx_edac_probe':
drivers/edac/ppc4xx_edac.c:188:12: error: storage class specified for parameter 'ppc4xx_edac_remove'
...
drivers/edac/ppc4xx_edac.c:1068:19: error: 'match' undeclared (first use in this function)
drivers/edac/ppc4xx_edac.c:1068:19: note: each undeclared identifier is reported only once for each function it appears in
drivers/edac/ppc4xx_edac.c:1068:36: warning: left-hand operand of comma expression has no effect [-Wunused-value]

Acked-by: Josh Boyer <jwboyer@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

drivers/edac/ppc4xx_edac.c
... ... @@ -184,7 +184,7 @@
184 184  
185 185 /* Function Prototypes */
186 186  
187   -static int ppc4xx_edac_probe(struct platform_device *device)
  187 +static int ppc4xx_edac_probe(struct platform_device *device);
188 188 static int ppc4xx_edac_remove(struct platform_device *device);
189 189  
190 190 /* Global Variables */
... ... @@ -1068,7 +1068,7 @@
1068 1068  
1069 1069 mci->mod_name = PPC4XX_EDAC_MODULE_NAME;
1070 1070 mci->mod_ver = PPC4XX_EDAC_MODULE_REVISION;
1071   - mci->ctl_name = match->compatible,
  1071 + mci->ctl_name = ppc4xx_edac_match->compatible,
1072 1072 mci->dev_name = np->full_name;
1073 1073  
1074 1074 /* Initialize callbacks */