#ifndef _IIO_CORE_H_
 #define _IIO_CORE_H_
 
-/**
- * iio_put() - internal module reference count reduce
- **/
-void iio_put(void);
-
-/**
- * iio_get() - internal module reference count increase
- **/
-void iio_get(void);
-
 int __iio_add_chan_devattr(const char *postfix,
                           const char *group,
                           struct iio_chan_spec const *chan,
 
 {
        struct iio_dev *dev_info = container_of(device, struct iio_dev, dev);
        cdev_del(&dev_info->chrdev);
-       iio_put();
        kfree(dev_info);
 }
 
                device_initialize(&dev->dev);
                dev_set_drvdata(&dev->dev, (void *)dev);
                mutex_init(&dev->mlock);
-               iio_get();
        }
 
        return dev;
 
 void iio_free_device(struct iio_dev *dev)
 {
-       if (dev) {
-               iio_put();
+       if (dev)
                kfree(dev);
-       }
 }
 EXPORT_SYMBOL(iio_free_device);
 
        device_unregister(&dev_info->dev);
 }
 EXPORT_SYMBOL(iio_device_unregister);
-
-void iio_put(void)
-{
-       module_put(THIS_MODULE);
-}
-
-void iio_get(void)
-{
-       __module_get(THIS_MODULE);
-}
-
 subsys_initcall(iio_init);
 module_exit(iio_exit);