Skip to content

Commit

Permalink
gfar: Fix modpost warning
Browse files Browse the repository at this point in the history
Fix the following modpost warning:

WARNING: vmlinux.o(.init.text+0x1aa6c): Section mismatch: reference to .exit.text:gfar_mdio_exit (between 'gfar_init' and 'gfar_mdio_init')

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Kumar Gala authored and Jeff Garzik committed Jul 30, 2007
1 parent 55b7b62 commit b9daf6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/gianfar_mii.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ int __init gfar_mdio_init(void)
return driver_register(&gianfar_mdio_driver);
}

void __exit gfar_mdio_exit(void)
void gfar_mdio_exit(void)
{
driver_unregister(&gianfar_mdio_driver);
}
2 changes: 1 addition & 1 deletion drivers/net/gianfar_mii.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ struct gfar_mii {
int gfar_mdio_read(struct mii_bus *bus, int mii_id, int regnum);
int gfar_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16 value);
int __init gfar_mdio_init(void);
void __exit gfar_mdio_exit(void);
void gfar_mdio_exit(void);
#endif /* GIANFAR_PHY_H */

0 comments on commit b9daf6c

Please sign in to comment.