aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fsl_pq_mdio.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/net/fsl_pq_mdio.c
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'drivers/net/fsl_pq_mdio.c')
-rw-r--r--drivers/net/fsl_pq_mdio.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/fsl_pq_mdio.c b/drivers/net/fsl_pq_mdio.c
index d4bf91aac25f..52f4e8ad48e7 100644
--- a/drivers/net/fsl_pq_mdio.c
+++ b/drivers/net/fsl_pq_mdio.c
@@ -125,7 +125,7 @@ int fsl_pq_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16 value)
125 struct fsl_pq_mdio __iomem *regs = fsl_pq_mdio_get_regs(bus); 125 struct fsl_pq_mdio __iomem *regs = fsl_pq_mdio_get_regs(bus);
126 126
127 /* Write to the local MII regs */ 127 /* Write to the local MII regs */
128 return(fsl_pq_local_mdio_write(regs, mii_id, regnum, value)); 128 return fsl_pq_local_mdio_write(regs, mii_id, regnum, value);
129} 129}
130 130
131/* 131/*
@@ -137,7 +137,7 @@ int fsl_pq_mdio_read(struct mii_bus *bus, int mii_id, int regnum)
137 struct fsl_pq_mdio __iomem *regs = fsl_pq_mdio_get_regs(bus); 137 struct fsl_pq_mdio __iomem *regs = fsl_pq_mdio_get_regs(bus);
138 138
139 /* Read the local MII regs */ 139 /* Read the local MII regs */
140 return(fsl_pq_local_mdio_read(regs, mii_id, regnum)); 140 return fsl_pq_local_mdio_read(regs, mii_id, regnum);
141} 141}
142 142
143/* Reset the MIIM registers, and wait for the bus to free */ 143/* Reset the MIIM registers, and wait for the bus to free */
@@ -265,8 +265,7 @@ static int get_ucc_id_for_range(u64 start, u64 end, u32 *ucc_id)
265#endif 265#endif
266 266
267 267
268static int fsl_pq_mdio_probe(struct platform_device *ofdev, 268static int fsl_pq_mdio_probe(struct platform_device *ofdev)
269 const struct of_device_id *match)
270{ 269{
271 struct device_node *np = ofdev->dev.of_node; 270 struct device_node *np = ofdev->dev.of_node;
272 struct device_node *tbi; 271 struct device_node *tbi;
@@ -471,7 +470,7 @@ static struct of_device_id fsl_pq_mdio_match[] = {
471}; 470};
472MODULE_DEVICE_TABLE(of, fsl_pq_mdio_match); 471MODULE_DEVICE_TABLE(of, fsl_pq_mdio_match);
473 472
474static struct of_platform_driver fsl_pq_mdio_driver = { 473static struct platform_driver fsl_pq_mdio_driver = {
475 .driver = { 474 .driver = {
476 .name = "fsl-pq_mdio", 475 .name = "fsl-pq_mdio",
477 .owner = THIS_MODULE, 476 .owner = THIS_MODULE,
@@ -483,13 +482,13 @@ static struct of_platform_driver fsl_pq_mdio_driver = {
483 482
484int __init fsl_pq_mdio_init(void) 483int __init fsl_pq_mdio_init(void)
485{ 484{
486 return of_register_platform_driver(&fsl_pq_mdio_driver); 485 return platform_driver_register(&fsl_pq_mdio_driver);
487} 486}
488module_init(fsl_pq_mdio_init); 487module_init(fsl_pq_mdio_init);
489 488
490void fsl_pq_mdio_exit(void) 489void fsl_pq_mdio_exit(void)
491{ 490{
492 of_unregister_platform_driver(&fsl_pq_mdio_driver); 491 platform_driver_unregister(&fsl_pq_mdio_driver);
493} 492}
494module_exit(fsl_pq_mdio_exit); 493module_exit(fsl_pq_mdio_exit);
495MODULE_LICENSE("GPL"); 494MODULE_LICENSE("GPL");