projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: fix return statement in the rtl8366 driver
[openwrt.git]
/
target
/
linux
/
ar71xx
/
files
/
drivers
/
net
/
phy
/
micrel.c
diff --git
a/target/linux/ar71xx/files/drivers/net/phy/micrel.c
b/target/linux/ar71xx/files/drivers/net/phy/micrel.c
index
e651672
..
bd56343
100644
(file)
--- a/
target/linux/ar71xx/files/drivers/net/phy/micrel.c
+++ b/
target/linux/ar71xx/files/drivers/net/phy/micrel.c
@@
-1,7
+1,7
@@
/*
* Driver for Micrel/Kendin PHYs
*
/*
* Driver for Micrel/Kendin PHYs
*
- * Copyright (c) 2008 Gabor Juhos <juhosg@openwrt.org>
+ * Copyright (c) 2008
-2009
Gabor Juhos <juhosg@openwrt.org>
* Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
*
* This program is free software; you can redistribute it and/or modify it
* Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
*
* This program is free software; you can redistribute it and/or modify it
@@
-46,7
+46,7
@@
static int ksz8041_config_intr(struct phy_device *phydev)
static struct phy_driver ksz8041_phy_driver = {
.phy_id = 0x00221512,
static struct phy_driver ksz8041_phy_driver = {
.phy_id = 0x00221512,
- .name = "Micrel
/Kendin
KSZ8041",
+ .name = "Micrel KSZ8041",
.phy_id_mask = 0x001fffff,
.features = PHY_BASIC_FEATURES,
.flags = PHY_HAS_INTERRUPT,
.phy_id_mask = 0x001fffff,
.features = PHY_BASIC_FEATURES,
.flags = PHY_HAS_INTERRUPT,
@@
-61,11
+61,7
@@
static struct phy_driver ksz8041_phy_driver = {
static int __init micrel_phy_init(void)
{
static int __init micrel_phy_init(void)
{
- int ret;
-
- ret = phy_driver_register(&ksz8041_phy_driver);
-
- return ret;
+ return phy_driver_register(&ksz8041_phy_driver);
}
static void __exit micrel_phy_exit(void)
}
static void __exit micrel_phy_exit(void)
@@
-73,8
+69,12
@@
static void __exit micrel_phy_exit(void)
phy_driver_unregister(&ksz8041_phy_driver);
}
phy_driver_unregister(&ksz8041_phy_driver);
}
+#ifdef MODULE
module_init(micrel_phy_init);
module_exit(micrel_phy_exit);
module_init(micrel_phy_init);
module_exit(micrel_phy_exit);
+#else
+subsys_initcall(micrel_phy_init);
+#endif
MODULE_DESCRIPTION("Micrel/Kendin PHY driver");
MODULE_AUTHOR("Gabor Juhos <juhosg@openwrt.org>");
MODULE_DESCRIPTION("Micrel/Kendin PHY driver");
MODULE_AUTHOR("Gabor Juhos <juhosg@openwrt.org>");
This page took
0.027401 seconds
and
4
git commands to generate.