]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
MIPS: ip22-gio: do not export device release function
authorJohan Hovold <johan@kernel.org>
Fri, 24 Apr 2026 10:28:49 +0000 (12:28 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 27 May 2026 07:50:34 +0000 (09:50 +0200)
There is no need to export the gio device release function as the
devices are reference counted.

Drop the export along with the unused inline wrapper.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/gio_device.h
arch/mips/sgi-ip22/ip22-gio.c

index 159087f5386e9efd04b5c98d4204278371638f35..f9c102f038d6aaf2e1fc6d0ad04135dd18653d67 100644 (file)
@@ -37,12 +37,6 @@ extern void gio_dev_put(struct gio_device *);
 
 extern int gio_device_register(struct gio_device *);
 extern void gio_device_unregister(struct gio_device *);
-extern void gio_release_dev(struct device *);
-
-static inline void gio_device_free(struct gio_device *dev)
-{
-       gio_release_dev(&dev->dev);
-}
 
 extern int gio_register_driver(struct gio_driver *);
 extern void gio_unregister_driver(struct gio_driver *);
index d29067430b44cb1ce209daccec0aafe78b74313e..54e17c8693e2bcc5dca4a8188ec9afedc4108020 100644 (file)
@@ -80,14 +80,13 @@ EXPORT_SYMBOL_GPL(gio_dev_put);
  * Will be called only by the device core when all users of this gio device are
  * done.
  */
-void gio_release_dev(struct device *dev)
+static void gio_release_dev(struct device *dev)
 {
        struct gio_device *giodev;
 
        giodev = to_gio_device(dev);
        kfree(giodev);
 }
-EXPORT_SYMBOL_GPL(gio_release_dev);
 
 int gio_device_register(struct gio_device *giodev)
 {