modpost: use linker section to generate table.
This means (most) future busses need only have one hunk in their patch. Also took the opportunity to check that function matches the type. Again, inspired by Alessandro's patch series. Signed-off-by: Rusty Russell <firstname.lastname@example.org> Cc: Alessandro Rubini <email@example.com>
Showing with 61 additions and 45 deletions