Skip to content

Commit b819439

Browse files
committed
parisc: drivers.c: Fix section mismatches
Fix two section mismatches in drivers.c: 1) Section mismatch in reference from the function alloc_tree_node() to the function .init.text:create_tree_node(). 2) Section mismatch in reference from the function walk_native_bus() to the function .init.text:alloc_pa_dev(). Signed-off-by: Helge Deller <[email protected]>
1 parent f76cdd0 commit b819439

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

arch/parisc/kernel/drivers.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,8 @@ static int match_by_id(struct device * dev, void * data)
448448
* Checks all the children of @parent for a matching @id. If none
449449
* found, it allocates a new device and returns it.
450450
*/
451-
static struct parisc_device * alloc_tree_node(struct device *parent, char id)
451+
static struct parisc_device * __init alloc_tree_node(
452+
struct device *parent, char id)
452453
{
453454
struct match_id_data d = {
454455
.id = id,
@@ -825,8 +826,8 @@ static void walk_lower_bus(struct parisc_device *dev)
825826
* devices which are not physically connected (such as extra serial &
826827
* keyboard ports). This problem is not yet solved.
827828
*/
828-
static void walk_native_bus(unsigned long io_io_low, unsigned long io_io_high,
829-
struct device *parent)
829+
static void __init walk_native_bus(unsigned long io_io_low,
830+
unsigned long io_io_high, struct device *parent)
830831
{
831832
int i, devices_found = 0;
832833
unsigned long hpa = io_io_low;

0 commit comments

Comments
 (0)