| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2013 - Virtual Open Systems |
|---|
| 3 | 4 | * 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. |
|---|
| 13 | 5 | */ |
|---|
| 14 | 6 | |
|---|
| 15 | 7 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 52 | 44 | { |
|---|
| 53 | 45 | struct platform_device *pdev = (struct platform_device *) vdev->opaque; |
|---|
| 54 | 46 | |
|---|
| 55 | | - return platform_get_irq(pdev, i); |
|---|
| 47 | + return platform_get_irq_optional(pdev, i); |
|---|
| 56 | 48 | } |
|---|
| 57 | 49 | |
|---|
| 58 | 50 | static int vfio_platform_probe(struct platform_device *pdev) |
|---|