projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15050f1
)
net: phy: micrel: Convert to livetree
author
Philipp Tomsich
<
[email protected]
>
Mon, 11 Sep 2017 20:04:14 +0000
(22:04 +0200)
committer
Philipp Tomsich
<
[email protected]
>
Mon, 18 Sep 2017 18:40:34 +0000
(20:40 +0200)
Update the Micrel KSZ90x1 driver for a live tree.
Signed-off-by: Philipp Tomsich <
[email protected]
>
Acked-by: Joe Hershberger <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
drivers/net/phy/micrel_ksz90x1.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/micrel_ksz90x1.c
b/drivers/net/phy/micrel_ksz90x1.c
index 0bb99e6bc6ba4194558c195cbfadfb304ef4be35..b350a61aa64bb06bc30e175765d94f75adcdd06c 100644
(file)
--- a/
drivers/net/phy/micrel_ksz90x1.c
+++ b/
drivers/net/phy/micrel_ksz90x1.c
@@
-9,11
+9,11
@@
* (C) Copyright 2017 Adaptrum, Inc.
* Written by Alexandru Gagniuc <
[email protected]
> for Adaptrum, Inc.
*/
+
#include <config.h>
#include <common.h>
#include <dm.h>
#include <errno.h>
-#include <fdtdec.h>
#include <micrel.h>
#include <phy.h>
@@
-120,8
+120,7
@@
static int ksz90x1_of_config_group(struct phy_device *phydev,
return -EOPNOTSUPP;
for (i = 0; i < ofcfg->grpsz; i++) {
- val[i] = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev),
- ofcfg->grp[i].name, -1);
+ val[i] = dev_read_u32_default(dev, ofcfg->grp[i].name, ~0);
offset = ofcfg->grp[i].off;
if (val[i] == -1) {
/* Default register value for KSZ9021 */