| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Fake VME bridge support. |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 18 | 19 | * |
|---|
| 19 | 20 | * Based on work by Tom Armistead and Ajit Prem |
|---|
| 20 | 21 | * Copyright 2004 Motorola Inc. |
|---|
| 21 | | - * |
|---|
| 22 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 23 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 24 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 25 | | - * option) any later version. |
|---|
| 26 | 22 | */ |
|---|
| 27 | 23 | |
|---|
| 28 | 24 | #include <linux/device.h> |
|---|
| .. | .. |
|---|
| 1077 | 1073 | |
|---|
| 1078 | 1074 | /* We need a fake parent device */ |
|---|
| 1079 | 1075 | vme_root = __root_device_register("vme", THIS_MODULE); |
|---|
| 1076 | + if (IS_ERR(vme_root)) |
|---|
| 1077 | + return PTR_ERR(vme_root); |
|---|
| 1080 | 1078 | |
|---|
| 1081 | 1079 | /* If we want to support more than one bridge at some point, we need to |
|---|
| 1082 | 1080 | * dynamically allocate this so we get one per device. |
|---|