mirror of https://gitee.com/openkylin/linux.git
coresight: acpi: Support for platform devices
Add support for platform devices which do not appear on the AMBA bus. Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1c20a213da
commit
115b1aa233
|
@ -5,6 +5,7 @@
|
||||||
* Description: CoreSight Replicator driver
|
* Description: CoreSight Replicator driver
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <linux/acpi.h>
|
||||||
#include <linux/amba/bus.h>
|
#include <linux/amba/bus.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/device.h>
|
#include <linux/device.h>
|
||||||
|
@ -296,11 +297,18 @@ static const struct of_device_id static_replicator_match[] = {
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef CONFIG_ACPI
|
||||||
|
static const struct acpi_device_id static_replicator_acpi_ids[] = {
|
||||||
|
{"ARMHC985", 0}, /* ARM CoreSight Static Replicator */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct platform_driver static_replicator_driver = {
|
static struct platform_driver static_replicator_driver = {
|
||||||
.probe = static_replicator_probe,
|
.probe = static_replicator_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "coresight-static-replicator",
|
.name = "coresight-static-replicator",
|
||||||
.of_match_table = static_replicator_match,
|
.of_match_table = of_match_ptr(static_replicator_match),
|
||||||
|
.acpi_match_table = ACPI_PTR(static_replicator_acpi_ids),
|
||||||
.pm = &replicator_dev_pm_ops,
|
.pm = &replicator_dev_pm_ops,
|
||||||
.suppress_bind_attrs = true,
|
.suppress_bind_attrs = true,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue