| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * PCI-E support for CNS3xxx |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * Richard Liu <richard.liu@caviumnetworks.com> |
|---|
| 6 | 7 | * Copyright 2010 MontaVista Software, LLC. |
|---|
| 7 | 8 | * Anton Vorontsov <avorontsov@mvista.com> |
|---|
| 8 | | - * |
|---|
| 9 | | - * This file is free software; you can redistribute it and/or modify |
|---|
| 10 | | - * it under the terms of the GNU General Public License, Version 2, as |
|---|
| 11 | | - * published by the Free Software Foundation. |
|---|
| 12 | 9 | */ |
|---|
| 13 | 10 | |
|---|
| 14 | 11 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 93 | 90 | u32 mask = (0x1ull << (size * 8)) - 1; |
|---|
| 94 | 91 | int shift = (where % 4) * 8; |
|---|
| 95 | 92 | |
|---|
| 96 | | - ret = pci_generic_config_read32(bus, devfn, where, size, val); |
|---|
| 93 | + ret = pci_generic_config_read(bus, devfn, where, size, val); |
|---|
| 97 | 94 | |
|---|
| 98 | 95 | if (ret == PCIBIOS_SUCCESSFUL && !bus->number && !devfn && |
|---|
| 99 | 96 | (where & 0xffc) == PCI_CLASS_REVISION) |
|---|