This exported function simply calls mite_setup2() with the 'use_iodsbsr_1' parameter set to 0. Inline the simple function and remove the EXPORT_SYMBOL_GPL. Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx> Cc: Ian Abbott <abbotti@xxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/staging/comedi/drivers/mite.c | 6 ------ drivers/staging/comedi/drivers/mite.h | 7 ++++++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/staging/comedi/drivers/mite.c b/drivers/staging/comedi/drivers/mite.c index 4658dfd..d90063b 100644 --- a/drivers/staging/comedi/drivers/mite.c +++ b/drivers/staging/comedi/drivers/mite.c @@ -168,12 +168,6 @@ int mite_setup2(struct mite_struct *mite, unsigned use_iodwbsr_1) } EXPORT_SYMBOL_GPL(mite_setup2); -int mite_setup(struct mite_struct *mite) -{ - return mite_setup2(mite, 0); -} -EXPORT_SYMBOL_GPL(mite_setup); - void mite_detach(struct mite_struct *mite) { if (!mite) diff --git a/drivers/staging/comedi/drivers/mite.h b/drivers/staging/comedi/drivers/mite.h index ef7172a..7c938b0 100644 --- a/drivers/staging/comedi/drivers/mite.h +++ b/drivers/staging/comedi/drivers/mite.h @@ -65,8 +65,13 @@ struct mite_struct { struct mite_struct *mite_alloc(struct pci_dev *pcidev); -int mite_setup(struct mite_struct *mite); int mite_setup2(struct mite_struct *mite, unsigned use_iodwbsr_1); + +static inline int mite_setup(struct mite_struct *mite) +{ + return mite_setup2(mite, 0); +} + void mite_detach(struct mite_struct *mite); struct mite_dma_descriptor_ring *mite_alloc_ring(struct mite_struct *mite); void mite_free_ring(struct mite_dma_descriptor_ring *ring); -- 2.0.3 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel