Skip to content

Commit

Permalink
powerpc: Move adb symbol exports next to function definitions
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Anton Blanchard authored and Michael Ellerman committed Sep 25, 2014
1 parent 831cf65 commit 370a3ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 0 additions & 7 deletions arch/powerpc/kernel/ppc_ksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,6 @@ EXPORT_SYMBOL(smp_hw_index);
#endif
#endif

#ifdef CONFIG_ADB
EXPORT_SYMBOL(adb_request);
EXPORT_SYMBOL(adb_register);
EXPORT_SYMBOL(adb_unregister);
EXPORT_SYMBOL(adb_poll);
EXPORT_SYMBOL(adb_try_handler_change);
#endif /* CONFIG_ADB */
#ifdef CONFIG_ADB_CUDA
EXPORT_SYMBOL(cuda_request);
EXPORT_SYMBOL(cuda_poll);
Expand Down
5 changes: 5 additions & 0 deletions drivers/macintosh/adb.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ adb_poll(void)
return;
adb_controller->poll();
}
EXPORT_SYMBOL(adb_poll);

static void adb_sync_req_done(struct adb_request *req)
{
Expand Down Expand Up @@ -460,6 +461,7 @@ adb_request(struct adb_request *req, void (*done)(struct adb_request *),

return rc;
}
EXPORT_SYMBOL(adb_request);

/* Ultimately this should return the number of devices with
the given default id.
Expand Down Expand Up @@ -495,6 +497,7 @@ adb_register(int default_id, int handler_id, struct adb_ids *ids,
mutex_unlock(&adb_handler_mutex);
return ids->nids;
}
EXPORT_SYMBOL(adb_register);

int
adb_unregister(int index)
Expand All @@ -516,6 +519,7 @@ adb_unregister(int index)
mutex_unlock(&adb_handler_mutex);
return ret;
}
EXPORT_SYMBOL(adb_unregister);

void
adb_input(unsigned char *buf, int nb, int autopoll)
Expand Down Expand Up @@ -582,6 +586,7 @@ adb_try_handler_change(int address, int new_id)
mutex_unlock(&adb_handler_mutex);
return ret;
}
EXPORT_SYMBOL(adb_try_handler_change);

int
adb_get_infos(int address, int *original_address, int *handler_id)
Expand Down

0 comments on commit 370a3ab

Please sign in to comment.