staging: comedi: mite: inline mite_setup()

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@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
H Hartley Sweeten 2014-07-29 15:01:36 -07:00 committed by Greg Kroah-Hartman
parent de9cd5ca02
commit 7a9e24eb4c
2 changed files with 6 additions and 7 deletions

View File

@ -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)

View File

@ -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);