Skip to content

Commit 73f4447

Browse files
Finn Thainmpe
authored andcommitted
macintosh/via-pmu: Fix section mismatch warning
The pmu_init() function has the __init qualifier, but the ops struct that holds a pointer to it does not. This causes a build warning. The driver works fine because the pointer is only dereferenced early. The function is so small that there's negligible benefit from using the __init qualifier. Remove it to fix the warning, consistent with the other ADB drivers. Tested-by: Stan Johnson <userm57@yahoo.com> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent f7e2a15 commit 73f4447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/macintosh/via-pmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ static int pmu_probe(void)
378378
return vias == NULL? -ENODEV: 0;
379379
}
380380

381-
static int __init pmu_init(void)
381+
static int pmu_init(void)
382382
{
383383
if (vias == NULL)
384384
return -ENODEV;

0 commit comments

Comments
 (0)