diff options
author | Kevin Hilman <khilman@linaro.org> | 2015-09-27 22:10:16 -0700 |
---|---|---|
committer | Kevin Hilman <khilman@linaro.org> | 2015-09-27 22:10:16 -0700 |
commit | 717ba9113b87cae180d7c9f2078e76359bc9bcca (patch) | |
tree | f1baefe7079618e42bbca1d7b112895d7fdeb6cc | |
parent | 962393f1adefe4b3be8f63409342e0ab34a5b162 (diff) | |
parent | 1f18cad529990d6637c6b7f49f79a4c3928ccf05 (diff) |
Merge branch 'linux-linaro-lsk-v3.18' into linux-linaro-lsk-v3.18-android
-rw-r--r-- | drivers/of/platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 3b64d0bf5bba..7c6771986c06 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -138,7 +138,7 @@ struct platform_device *of_device_alloc(struct device_node *np, } dev->dev.of_node = of_node_get(np); - dev->dev.parent = parent; + dev->dev.parent = parent ? : &platform_bus; if (bus_id) dev_set_name(&dev->dev, "%s", bus_id); @@ -291,7 +291,7 @@ static struct amba_device *of_amba_device_create(struct device_node *node, /* setup generic device info */ dev->dev.of_node = of_node_get(node); - dev->dev.parent = parent; + dev->dev.parent = parent ? : &platform_bus; dev->dev.platform_data = platform_data; if (bus_id) dev_set_name(&dev->dev, "%s", bus_id); |