irq-mbigen.c (942baad211336efefb93a8369478888ab845c450) irq-mbigen.c (c96d6abbec52d6723bef6b50846f40f7fb27e93c)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2015 HiSilicon Limited, All Rights Reserved.
4 * Author: Jun Ma <majun258@huawei.com>
5 * Author: Yun Wu <wuyun.wu@huawei.com>
6 */
7
8#include <linux/acpi.h>

--- 259 unchanged lines hidden (view full) ---

268 return -ENOMEM;
269 }
270 }
271
272 return 0;
273}
274
275#ifdef CONFIG_ACPI
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2015 HiSilicon Limited, All Rights Reserved.
4 * Author: Jun Ma <majun258@huawei.com>
5 * Author: Yun Wu <wuyun.wu@huawei.com>
6 */
7
8#include <linux/acpi.h>

--- 259 unchanged lines hidden (view full) ---

268 return -ENOMEM;
269 }
270 }
271
272 return 0;
273}
274
275#ifdef CONFIG_ACPI
276static const struct acpi_device_id mbigen_acpi_match[] = {
277 { "HISI0152", 0 },
278 {}
279};
280MODULE_DEVICE_TABLE(acpi, mbigen_acpi_match);
281
276static int mbigen_acpi_create_domain(struct platform_device *pdev,
277 struct mbigen_device *mgn_chip)
278{
279 struct irq_domain *domain;
280 u32 num_pins = 0;
281 int ret;
282
283 /*

--- 80 unchanged lines hidden (view full) ---

364}
365
366static const struct of_device_id mbigen_of_match[] = {
367 { .compatible = "hisilicon,mbigen-v2" },
368 { /* END */ }
369};
370MODULE_DEVICE_TABLE(of, mbigen_of_match);
371
282static int mbigen_acpi_create_domain(struct platform_device *pdev,
283 struct mbigen_device *mgn_chip)
284{
285 struct irq_domain *domain;
286 u32 num_pins = 0;
287 int ret;
288
289 /*

--- 80 unchanged lines hidden (view full) ---

370}
371
372static const struct of_device_id mbigen_of_match[] = {
373 { .compatible = "hisilicon,mbigen-v2" },
374 { /* END */ }
375};
376MODULE_DEVICE_TABLE(of, mbigen_of_match);
377
372static const struct acpi_device_id mbigen_acpi_match[] = {
373 { "HISI0152", 0 },
374 {}
375};
376MODULE_DEVICE_TABLE(acpi, mbigen_acpi_match);
377
378static struct platform_driver mbigen_platform_driver = {
379 .driver = {
380 .name = "Hisilicon MBIGEN-V2",
381 .of_match_table = mbigen_of_match,
382 .acpi_match_table = ACPI_PTR(mbigen_acpi_match),
383 .suppress_bind_attrs = true,
384 },
385 .probe = mbigen_device_probe,
386};
387
388module_platform_driver(mbigen_platform_driver);
389
390MODULE_AUTHOR("Jun Ma <majun258@huawei.com>");
391MODULE_AUTHOR("Yun Wu <wuyun.wu@huawei.com>");
392MODULE_LICENSE("GPL");
393MODULE_DESCRIPTION("HiSilicon MBI Generator driver");
378static struct platform_driver mbigen_platform_driver = {
379 .driver = {
380 .name = "Hisilicon MBIGEN-V2",
381 .of_match_table = mbigen_of_match,
382 .acpi_match_table = ACPI_PTR(mbigen_acpi_match),
383 .suppress_bind_attrs = true,
384 },
385 .probe = mbigen_device_probe,
386};
387
388module_platform_driver(mbigen_platform_driver);
389
390MODULE_AUTHOR("Jun Ma <majun258@huawei.com>");
391MODULE_AUTHOR("Yun Wu <wuyun.wu@huawei.com>");
392MODULE_LICENSE("GPL");
393MODULE_DESCRIPTION("HiSilicon MBI Generator driver");