Skip to content

Commit

Permalink
zorro: Make zorro_match_device() static
Browse files Browse the repository at this point in the history
Unlike its PCI counterpart, zorro_match_device() was never used outside
the Zorro bus code.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20200112164949.20196-2-geert@linux-m68k.org
  • Loading branch information
Geert Uytterhoeven committed Mar 9, 2020
1 parent 1b43cb5 commit 0cfb07c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions drivers/zorro/zorro-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* zorro_device_id structure or %NULL if there is no match.
*/

const struct zorro_device_id *
static const struct zorro_device_id *
zorro_match_device(const struct zorro_device_id *ids,
const struct zorro_dev *z)
{
Expand All @@ -39,7 +39,6 @@ zorro_match_device(const struct zorro_device_id *ids,
}
return NULL;
}
EXPORT_SYMBOL(zorro_match_device);


static int zorro_device_probe(struct device *dev)
Expand Down
1 change: 0 additions & 1 deletion include/linux/zorro.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ struct zorro_driver {
/* New-style probing */
extern int zorro_register_driver(struct zorro_driver *);
extern void zorro_unregister_driver(struct zorro_driver *);
extern const struct zorro_device_id *zorro_match_device(const struct zorro_device_id *ids, const struct zorro_dev *z);
static inline struct zorro_driver *zorro_dev_driver(const struct zorro_dev *z)
{
return z->driver;
Expand Down

0 comments on commit 0cfb07c

Please sign in to comment.