Skip to content

Commit

Permalink
ax88796: export ax_NS8390_init() hook
Browse files Browse the repository at this point in the history
The block I/O code for the new X-Surf 100 ax88796 driver needs
ax_NS8390_init() for error fixup in its block_output function.

Export this static function through the ax_NS8390_reinit()
wrapper so we can lose the lib8380.c include in the X-Surf 100
driver.

[arnd: add the declaration in the header to avoid a
 -Wmissing-prototypes warning]
Fixes: 861928f ("net-next: New ax88796 platform
driver for Amiga X-Surf 100 Zorro board (m68k)")
Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michael Schmitz authored and David S. Miller committed Aug 3, 2021
1 parent e179d78 commit 375df5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/net/ethernet/8390/ax88796.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ static inline struct ax_device *to_ax_dev(struct net_device *dev)
return (struct ax_device *)(ei_local + 1);
}

void ax_NS8390_reinit(struct net_device *dev)
{
ax_NS8390_init(dev, 1);
}

EXPORT_SYMBOL_GPL(ax_NS8390_reinit);

/*
* ax_initial_check
*
Expand Down
3 changes: 3 additions & 0 deletions include/net/ax88796.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@ struct ax_plat_data {
int (*check_irq)(struct platform_device *pdev);
};

/* exported from ax88796.c for xsurf100.c */
extern void ax_NS8390_reinit(struct net_device *dev);

#endif /* __NET_AX88796_PLAT_H */

0 comments on commit 375df5f

Please sign in to comment.