aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-04-12 18:56:05 +0000
committerJohn Crispin <blogic@openwrt.org>2013-04-12 18:56:05 +0000
commitd8aae3517b190b1e17582327c9a68a479f092989 (patch)
tree98c7c1f30653aadc2ec996ff8781fa7b12434672 /target/linux/generic/files/drivers
parentbb114efbc81dbaeb45f81f9bc863fa91519e006b (diff)
downloadupstream-d8aae3517b190b1e17582327c9a68a479f092989.tar.gz
upstream-d8aae3517b190b1e17582327c9a68a479f092989.tar.bz2
upstream-d8aae3517b190b1e17582327c9a68a479f092989.zip
[geneirc] fix rtl8366s OF binding
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36323 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/drivers')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366s.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366s.c b/target/linux/generic/files/drivers/net/phy/rtl8366s.c
index 196d49e4c6..3dc2a87aed 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366s.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366s.c
@@ -256,7 +256,7 @@ static int rtl8366s_setup(struct rtl8366_smi *smi)
int err;
pdata = smi->parent->platform_data;
- if (pdata->num_initvals && pdata->initvals) {
+ if (pdata && pdata->num_initvals && pdata->initvals) {
unsigned i;
dev_info(smi->parent, "applying initvals\n");
@@ -1110,7 +1110,7 @@ static int rtl8366s_remove(struct platform_device *pdev)
#ifdef CONFIG_OF
static const struct of_device_id rtl8366s_match[] = {
- { .compatible = "rtl8366s" },
+ { .compatible = "realtek,rtl8366s" },
{},
};
MODULE_DEVICE_TABLE(of, rtl8366s_match);