Skip to content

Commit

Permalink
NFC: Remove unneeded LLC symbols export
Browse files Browse the repository at this point in the history
After fixing the LLC Makefile, we no longer need those exports.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Samuel Ortiz committed Sep 24, 2012
1 parent 412fda5 commit f4f20d0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
14 changes: 1 addition & 13 deletions net/nfc/hci/llc.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#include <linux/export.h>
#include <net/nfc/llc.h>

#include "llc.h"

static struct list_head llc_engines;
Expand All @@ -44,7 +44,6 @@ int nfc_llc_init(void)
nfc_llc_exit();
return r;
}
EXPORT_SYMBOL(nfc_llc_init);

void nfc_llc_exit(void)
{
Expand All @@ -56,7 +55,6 @@ void nfc_llc_exit(void)
kfree(llc_engine);
}
}
EXPORT_SYMBOL(nfc_llc_exit);

int nfc_llc_register(const char *name, struct nfc_llc_ops *ops)
{
Expand All @@ -78,7 +76,6 @@ int nfc_llc_register(const char *name, struct nfc_llc_ops *ops)

return 0;
}
EXPORT_SYMBOL(nfc_llc_register);

static struct nfc_llc_engine *nfc_llc_name_to_engine(const char *name)
{
Expand All @@ -104,7 +101,6 @@ void nfc_llc_unregister(const char *name)
kfree(llc_engine->name);
kfree(llc_engine);
}
EXPORT_SYMBOL(nfc_llc_unregister);

struct nfc_llc *nfc_llc_allocate(const char *name, struct nfc_hci_dev *hdev,
xmit_to_drv_t xmit_to_drv,
Expand Down Expand Up @@ -134,49 +130,41 @@ struct nfc_llc *nfc_llc_allocate(const char *name, struct nfc_hci_dev *hdev,

return llc;
}
EXPORT_SYMBOL(nfc_llc_allocate);

void nfc_llc_free(struct nfc_llc *llc)
{
llc->ops->deinit(llc);
kfree(llc);
}
EXPORT_SYMBOL(nfc_llc_free);

inline void nfc_llc_get_rx_head_tail_room(struct nfc_llc *llc, int *rx_headroom,
int *rx_tailroom)
{
*rx_headroom = llc->rx_headroom;
*rx_tailroom = llc->rx_tailroom;
}
EXPORT_SYMBOL(nfc_llc_get_rx_head_tail_room);

inline int nfc_llc_start(struct nfc_llc *llc)
{
return llc->ops->start(llc);
}
EXPORT_SYMBOL(nfc_llc_start);

inline int nfc_llc_stop(struct nfc_llc *llc)
{
return llc->ops->stop(llc);
}
EXPORT_SYMBOL(nfc_llc_stop);

inline void nfc_llc_rcv_from_drv(struct nfc_llc *llc, struct sk_buff *skb)
{
llc->ops->rcv_from_drv(llc, skb);
}
EXPORT_SYMBOL(nfc_llc_rcv_from_drv);

inline int nfc_llc_xmit_from_hci(struct nfc_llc *llc, struct sk_buff *skb)
{
return llc->ops->xmit_from_hci(llc, skb);
}
EXPORT_SYMBOL(nfc_llc_xmit_from_hci);

inline void *nfc_llc_get_data(struct nfc_llc *llc)
{
return llc->data;
}
EXPORT_SYMBOL(nfc_llc_get_data);
2 changes: 0 additions & 2 deletions net/nfc/hci/llc_nop.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/

#include <linux/types.h>
#include <linux/export.h>

#include "llc.h"

Expand Down Expand Up @@ -98,4 +97,3 @@ int nfc_llc_nop_register()
{
return nfc_llc_register(LLC_NOP_NAME, &llc_nop_ops);
}
EXPORT_SYMBOL(nfc_llc_nop_register);
2 changes: 0 additions & 2 deletions net/nfc/hci/llc_shdlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include <linux/types.h>
#include <linux/sched.h>
#include <linux/export.h>
#include <linux/wait.h>
#include <linux/slab.h>
#include <linux/skbuff.h>
Expand Down Expand Up @@ -831,4 +830,3 @@ int nfc_llc_shdlc_register()
{
return nfc_llc_register(LLC_SHDLC_NAME, &llc_shdlc_ops);
}
EXPORT_SYMBOL(nfc_llc_shdlc_register);

0 comments on commit f4f20d0

Please sign in to comment.