summaryrefslogtreecommitdiff
path: root/drivers/parisc/hppb.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2017-08-21 23:02:19 +0300
committerHelge Deller <deller@gmx.de>2017-08-22 17:34:36 +0300
commitcfe4fbfb23b3280e9a4d1c3b8438c1558a6a614d (patch)
treeb3df38bb57f5f662bdfb779bab7e65102f780d7f /drivers/parisc/hppb.c
parentf0973443bef706b6bccc8a1b99a19b8e389bf9cd (diff)
downloadlinux-cfe4fbfb23b3280e9a4d1c3b8438c1558a6a614d.tar.xz
parisc: Fix section mismatches in parisc core drivers
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/parisc/hppb.c')
-rw-r--r--drivers/parisc/hppb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/parisc/hppb.c b/drivers/parisc/hppb.c
index 898208e4f302..ebc7b617e5d0 100644
--- a/drivers/parisc/hppb.c
+++ b/drivers/parisc/hppb.c
@@ -45,7 +45,7 @@ static struct hppb_card hppb_card_head = {
* (return 1). If so, initialize the chip and tell other partners in crime
* they have work to do.
*/
-static int hppb_probe(struct parisc_device *dev)
+static int __init hppb_probe(struct parisc_device *dev)
{
int status;
struct hppb_card *card = &hppb_card_head;
@@ -81,7 +81,7 @@ static int hppb_probe(struct parisc_device *dev)
return 0;
}
-static struct parisc_device_id hppb_tbl[] = {
+static const struct parisc_device_id hppb_tbl[] __initconst = {
{ HPHW_BCPORT, HVERSION_REV_ANY_ID, 0x500, 0xc }, /* E25 and K */
{ HPHW_BCPORT, 0x0, 0x501, 0xc }, /* E35 */
{ HPHW_BCPORT, 0x0, 0x502, 0xc }, /* E45 */
@@ -89,7 +89,7 @@ static struct parisc_device_id hppb_tbl[] = {
{ 0, }
};
-static struct parisc_driver hppb_driver = {
+static struct parisc_driver hppb_driver __refdata = {
.name = "gecko_boa",
.id_table = hppb_tbl,
.probe = hppb_probe,