Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: ip22-gio: Make gio_match_device() static

Unlike its PCI counterpart, gio_match_device() was never used outside
the GIO bus code.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

authored by

Geert Uytterhoeven and committed by
Paul Burton
70eec920 72d052e2

+3 -5
-2
arch/mips/include/asm/gio_device.h
··· 32 32 }; 33 33 #define to_gio_driver(drv) container_of(drv, struct gio_driver, driver) 34 34 35 - extern const struct gio_device_id *gio_match_device(const struct gio_device_id *, 36 - const struct gio_device *); 37 35 extern struct gio_device *gio_dev_get(struct gio_device *); 38 36 extern void gio_dev_put(struct gio_device *); 39 37
+3 -3
arch/mips/sgi-ip22/ip22-gio.c
··· 47 47 * Used by a driver to check whether an of_device present in the 48 48 * system is in its list of supported devices. 49 49 */ 50 - const struct gio_device_id *gio_match_device(const struct gio_device_id *match, 51 - const struct gio_device *dev) 50 + static const struct gio_device_id * 51 + gio_match_device(const struct gio_device_id *match, 52 + const struct gio_device *dev) 52 53 { 53 54 const struct gio_device_id *ids; 54 55 ··· 59 58 60 59 return NULL; 61 60 } 62 - EXPORT_SYMBOL_GPL(gio_match_device); 63 61 64 62 struct gio_device *gio_dev_get(struct gio_device *dev) 65 63 {