projects
/
openwrt
/
staging
/
lynxis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fa3171
)
generic: ar8216: remove superfluous pdata checks
author
Gabor Juhos
<
[email protected]
>
Fri, 15 Mar 2013 15:49:55 +0000
(15:49 +0000)
committer
Gabor Juhos
<
[email protected]
>
Fri, 15 Mar 2013 15:49:55 +0000
(15:49 +0000)
The presence of the platform data is already verified in
ar8327_hw_init, and the driver does not start without that
anyway.
Signed-off-by: Gabor Juhos <
[email protected]
>
SVN-Revision: 36042
target/linux/generic/files/drivers/net/phy/ar8216.c
patch
|
blob
|
history
diff --git
a/target/linux/generic/files/drivers/net/phy/ar8216.c
b/target/linux/generic/files/drivers/net/phy/ar8216.c
index 1d77341a8ac5c6772ea45703e22ec9f1502ee1d2..7cb5186f34d4585554bf966107d102ea6a815294 100644
(file)
--- a/
target/linux/generic/files/drivers/net/phy/ar8216.c
+++ b/
target/linux/generic/files/drivers/net/phy/ar8216.c
@@
-1127,9
+1127,9
@@
ar8327_init_port(struct ar8xxx_priv *priv, int port)
pdata = priv->phy->dev.platform_data;
- if (p
data && p
ort == AR8216_PORT_CPU)
+ if (port == AR8216_PORT_CPU)
cfg = &pdata->port0_cfg;
- else if (p
data && p
ort == 6)
+ else if (port == 6)
cfg = &pdata->port6_cfg;
else
cfg = NULL;