w1-gpio: fix section mismatch
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 27 Jan 2013 20:07:57 +0000 (21:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Mar 2013 18:26:37 +0000 (11:26 -0700)
commitf7322a37359d76075db32f826ce5c2c473391a5a
treeef9c68bf2c986742c882cd603460d42755cae69d
parent32f4d10ed8fd7ef4cebbf02c5326e8bb6aeca9b1
w1-gpio: fix section mismatch

commit 06a8f1feb9e82e5b66f781ba3e39055e3f89a641 upstream.

This fixes the following section mismatch:

WARNING: drivers/w1/masters/w1-gpio.o(.data+0x188): Section mismatch in
reference from the variable w1_gpio_driver to the function
.init.text:w1_gpio_probe()
The variable w1_gpio_driver references
the function __init w1_gpio_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/masters/w1-gpio.c