Skip to content

Commit

Permalink
x86: Don't put iommu_shutdown_noop() in init section
Browse files Browse the repository at this point in the history
It causes kernel panic on shutdown or reboot.

Signed-off-by: Hiroshi Shimamoto <[email protected]>
Acked-by: FUJITA Tomonori <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
h-shimamoto authored and Ingo Molnar committed Nov 16, 2009
1 parent f4131c6 commit 62ad33f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/x86_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void __cpuinit x86_init_noop(void) { }
void __init x86_init_uint_noop(unsigned int unused) { }
void __init x86_init_pgd_noop(pgd_t *unused) { }
int __init iommu_init_noop(void) { return 0; }
void __init iommu_shutdown_noop(void) { }
void iommu_shutdown_noop(void) { }

/*
* The platform setup functions are preset with the default functions
Expand Down

0 comments on commit 62ad33f

Please sign in to comment.