From: H Hartley Sweeten Date: Tue, 29 Jul 2014 22:01:36 +0000 (-0700) Subject: staging: comedi: mite: inline mite_setup() X-Git-Tag: firefly_0821_release~176^2~3491^2~106 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7a9e24eb4c40ea3afcd64269353c4f6c8139f0eb;p=firefly-linux-kernel-4.4.55.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/mite.c b/drivers/staging/comedi/drivers/mite.c index 4658dfdf1ca8..d90063bf0279 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 ef7172af7031..7c938b0452c5 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);