forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/vfio/platform/vfio_platform.c
....@@ -1,15 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2013 - Virtual Open Systems
34 * Author: Antonios Motakis <a.motakis@virtualopensystems.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License, version 2, as
7
- * published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
135 */
146
157 #include <linux/module.h>
....@@ -52,7 +44,7 @@
5244 {
5345 struct platform_device *pdev = (struct platform_device *) vdev->opaque;
5446
55
- return platform_get_irq(pdev, i);
47
+ return platform_get_irq_optional(pdev, i);
5648 }
5749
5850 static int vfio_platform_probe(struct platform_device *pdev)