| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Filename: cregs.c |
|---|
| 3 | | -* |
|---|
| 4 | 4 | * |
|---|
| 5 | 5 | * Authors: Joshua Morris <josh.h.morris@us.ibm.com> |
|---|
| 6 | 6 | * Philip Kelleher <pjk1939@linux.vnet.ibm.com> |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | * (C) Copyright 2013 IBM Corporation |
|---|
| 9 | | -* |
|---|
| 10 | | -* This program is free software; you can redistribute it and/or |
|---|
| 11 | | -* modify it under the terms of the GNU General Public License as |
|---|
| 12 | | -* published by the Free Software Foundation; either version 2 of the |
|---|
| 13 | | -* License, or (at your option) any later version. |
|---|
| 14 | | -* |
|---|
| 15 | | -* This program is distributed in the hope that it will be useful, but |
|---|
| 16 | | -* WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 17 | | -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 18 | | -* General Public License for more details. |
|---|
| 19 | | -* |
|---|
| 20 | | -* You should have received a copy of the GNU General Public License |
|---|
| 21 | | -* along with this program; if not, write to the Free Software Foundation, |
|---|
| 22 | | -* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 23 | 9 | */ |
|---|
| 24 | 10 | |
|---|
| 25 | 11 | #include <linux/completion.h> |
|---|
| .. | .. |
|---|
| 276 | 262 | st = -EIO; |
|---|
| 277 | 263 | } |
|---|
| 278 | 264 | |
|---|
| 279 | | - if ((cmd->op == CREG_OP_READ)) { |
|---|
| 265 | + if (cmd->op == CREG_OP_READ) { |
|---|
| 280 | 266 | unsigned int cnt8 = ioread32(card->regmap + CREG_CNT); |
|---|
| 281 | 267 | |
|---|
| 282 | 268 | /* Paranoid Sanity Checks */ |
|---|