Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a9e24eb authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent de9cd5ca
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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)
+6 −1
Original line number Diff line number Diff line
@@ -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);