MIPS: ip22-gio: Make gio_match_device() static
PATCH 1/1 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 <[email protected]>
--- arch/mips/include/asm/gio_device.h | 2 -- arch/mips/sgi-ip22/ip22-gio.c | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-)
arch/mips/include/asm/gio_device.h +0 -2
@@ -32,8 +32,6 @@ struct gio_driver { };#define to_gio_driver (drv) container_of(drv, struct gio_driver, driver) -extern const struct gio_device_id *gio_match_device (const struct gio_device_id *, -const struct gio_device *);extern struct gio_device *gio_dev_get (struct gio_device *);extern void gio_dev_put (struct gio_device *);
arch/mips/sgi-ip22/ip22-gio.c +3 -3
@@ -47,8 +47,9 @@ static struct device gio_bus = {* Used by a driver to check whether an of_device present in the * system is in its list of supported devices. */ -const struct gio_device_id *gio_match_device (const struct gio_device_id *match, -const struct gio_device *dev) +static const struct gio_device_id * +gio_match_device (const struct gio_device_id *match, +const struct gio_device *dev) {const struct gio_device_id *ids;
@@ -58,7 +59,6 @@ const struct gio_device_id *gio_match_device(const struct gio_device_id *match,return NULL ; } -EXPORT_SYMBOL_GPL (gio_match_device);struct gio_device *gio_dev_get (struct gio_device *dev) {
Signature · 1 line
2.17.1
Paul Burton
AppliedHello,
Quoted 2 lines · Geert Uytterhoeven
Unlike its PCI counterpart,
gio_match_device()was never used outside the GIO bus code.
Applied to mips-next.
Quoted 5 lines
commit
70eec920d4f2
https://git.kernel.org/mips/c/70eec920d4f2Signed-off-by Geert Uytterhoeven <[email protected]>Signed-off-by Paul Burton <[email protected]>
Thanks,
Paul
[ This message was auto-generated; if you believe anything is incorrect
then please email [email protected] to report it. ]