staging: comedi: mite: inline mite_setup()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 29 Jul 2014 22:01:36 +0000 (15:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jul 2014 23:55:15 +0000 (16:55 -0700)
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>
drivers/staging/comedi/drivers/mite.c
drivers/staging/comedi/drivers/mite.h

index 4658dfdf1ca89115b175bb09d6d39c068d067990..d90063bf0279aca189ff60a06f304c196c48ebd5 100644 (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)
index ef7172af7031230e0de6b5d679cf33b46fa826da..7c938b0452c5e5112457a1900411a7d917711c58 100644 (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);