diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2018-09-06 12:27:22 +0100 |
---|---|---|
committer | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2018-09-06 12:27:22 +0100 |
commit | 7afe9d7cbb2f6575c9ad1cd018d55b3483a641a4 (patch) | |
tree | a263763ce816cbcbd287e1d0ee8f69dc133515b1 | |
parent | 4a937b7bcfa822eddc5d42c28b05fc85187e8162 (diff) |
Revert "soc: qcom: apr: add uevent and device table"
This reverts commit 110b667d474a17bf4b68e737943b5813ecfbde27.
-rw-r--r-- | drivers/soc/qcom/apr.c | 15 | ||||
-rw-r--r-- | include/linux/soc/qcom/apr.h | 1 |
2 files changed, 0 insertions, 16 deletions
diff --git a/drivers/soc/qcom/apr.c b/drivers/soc/qcom/apr.c index e669a6104af44..56ed3fb1f2f93 100644 --- a/drivers/soc/qcom/apr.c +++ b/drivers/soc/qcom/apr.c @@ -195,23 +195,10 @@ static int apr_device_remove(struct device *dev) return 0; } -static int apr_uevent(struct device *dev, struct kobj_uevent_env *env) -{ - struct apr_device *adev = to_apr_device(dev); - int ret; - - ret = of_device_uevent_modalias(dev, env); - if (ret != -ENODEV) - return ret; - - return add_uevent_var(env, "MODALIAS= apr:%s", adev->name); -} - struct bus_type aprbus_type = { .name = "aprbus", .match = apr_device_match, .probe = apr_device_probe, - .uevent = apr_uevent, .remove = apr_device_remove, .force_dma = true, }; @@ -233,7 +220,6 @@ static int apr_add_device(struct device *dev, struct device_node *np, adev->svc_id = id->svc_id; adev->domain_id = id->domain_id; adev->version = id->svc_version; - strncpy(adev->name, id->name, APR_NAME_SIZE); dev_set_name(&adev->dev, "aprsvc:%s:%x:%x", id->name, id->domain_id, id->svc_id); } else { @@ -358,7 +344,6 @@ static const struct of_device_id apr_of_match[] = { { .compatible = "qcom,apr-v2"}, {} }; -MODULE_DEVICE_TABLE(of, apr_of_match); static struct rpmsg_driver apr_driver = { .probe = apr_probe, diff --git a/include/linux/soc/qcom/apr.h b/include/linux/soc/qcom/apr.h index 604ea7f36a694..dbc9efe185d1e 100644 --- a/include/linux/soc/qcom/apr.h +++ b/include/linux/soc/qcom/apr.h @@ -88,7 +88,6 @@ struct apr_device { uint16_t svc_id; uint16_t domain_id; uint32_t version; - char name[APR_NAME_SIZE]; spinlock_t lock; struct list_head node; }; |