]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
parisc/harmony: Fix section mismatches
authorHelge Deller <deller@gmx.de>
Mon, 21 Aug 2017 19:52:05 +0000 (21:52 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 22 Aug 2017 14:34:35 +0000 (16:34 +0200)
Signed-off-by: Helge Deller <deller@gmx.de>
sound/parisc/harmony.c

index 5911eb35c2a3995314614dbc74fb8f456bffd7fc..5e04c2b4fbc1e8984ad1bd932d8988309ae36efa 100644 (file)
@@ -66,7 +66,7 @@ module_param(id, charp, 0444);
 MODULE_PARM_DESC(id, "ID string for Harmony driver.");
 
 
-static struct parisc_device_id snd_harmony_devtable[] = {
+static const struct parisc_device_id snd_harmony_devtable[] __initconst = {
        /* bushmaster / flounder */
        { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0007A }, 
        /* 712 / 715 */
@@ -960,7 +960,7 @@ free_and_ret:
        return err;
 }
 
-static int
+static int __init
 snd_harmony_probe(struct parisc_device *padev)
 {
        int err;
@@ -1000,18 +1000,18 @@ free_and_ret:
        return err;
 }
 
-static int
+static int __exit
 snd_harmony_remove(struct parisc_device *padev)
 {
        snd_card_free(parisc_get_drvdata(padev));
        return 0;
 }
 
-static struct parisc_driver snd_harmony_driver = {
+static struct parisc_driver snd_harmony_driver __refdata = {
        .name = "harmony",
        .id_table = snd_harmony_devtable,
        .probe = snd_harmony_probe,
-       .remove = snd_harmony_remove,
+       .remove = __exit_p(snd_harmony_remove),
 };
 
 static int __init