mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: Finn Thain <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
This commit is contained in:
parent
f7e2a15223
commit
73f4447d43
1 changed files with 1 additions and 1 deletions
|
|
@ -378,7 +378,7 @@ static int pmu_probe(void)
|
|||
return vias == NULL? -ENODEV: 0;
|
||||
}
|
||||
|
||||
static int __init pmu_init(void)
|
||||
static int pmu_init(void)
|
||||
{
|
||||
if (vias == NULL)
|
||||
return -ENODEV;
|
||||
|
|
|
|||
Loading…
Reference in a new issue