mirror of https://gitee.com/openkylin/linux.git
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
This commit is contained in:
parent
72d052e28d
commit
70eec920d4
|
@ -32,8 +32,6 @@ struct gio_driver {
|
||||||
};
|
};
|
||||||
#define to_gio_driver(drv) container_of(drv, struct gio_driver, 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 struct gio_device *gio_dev_get(struct gio_device *);
|
||||||
extern void gio_dev_put(struct gio_device *);
|
extern void gio_dev_put(struct gio_device *);
|
||||||
|
|
||||||
|
|
|
@ -47,8 +47,9 @@ static struct device gio_bus = {
|
||||||
* Used by a driver to check whether an of_device present in the
|
* Used by a driver to check whether an of_device present in the
|
||||||
* system is in its list of supported devices.
|
* system is in its list of supported devices.
|
||||||
*/
|
*/
|
||||||
const struct gio_device_id *gio_match_device(const struct gio_device_id *match,
|
static const struct gio_device_id *
|
||||||
const struct gio_device *dev)
|
gio_match_device(const struct gio_device_id *match,
|
||||||
|
const struct gio_device *dev)
|
||||||
{
|
{
|
||||||
const struct gio_device_id *ids;
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(gio_match_device);
|
|
||||||
|
|
||||||
struct gio_device *gio_dev_get(struct gio_device *dev)
|
struct gio_device *gio_dev_get(struct gio_device *dev)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue