| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * PXA930 track ball mouse driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2007 Marvell International Ltd. |
|---|
| 5 | 6 | * 2008-02-28: Yong Yao <yaoyong@marvell.com> |
|---|
| 6 | 7 | * initial version |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 10 | | - * published by the Free Software Foundation. |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #include <linux/input.h> |
|---|
| .. | .. |
|---|
| 150 | 147 | int irq, error; |
|---|
| 151 | 148 | |
|---|
| 152 | 149 | irq = platform_get_irq(pdev, 0); |
|---|
| 153 | | - if (irq < 0) { |
|---|
| 154 | | - dev_err(&pdev->dev, "failed to get trkball irq\n"); |
|---|
| 150 | + if (irq < 0) |
|---|
| 155 | 151 | return -ENXIO; |
|---|
| 156 | | - } |
|---|
| 157 | 152 | |
|---|
| 158 | 153 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
|---|
| 159 | 154 | if (!res) { |
|---|
| .. | .. |
|---|
| 172 | 167 | goto failed; |
|---|
| 173 | 168 | } |
|---|
| 174 | 169 | |
|---|
| 175 | | - trkball->mmio_base = ioremap_nocache(res->start, resource_size(res)); |
|---|
| 170 | + trkball->mmio_base = ioremap(res->start, resource_size(res)); |
|---|
| 176 | 171 | if (!trkball->mmio_base) { |
|---|
| 177 | 172 | dev_err(&pdev->dev, "failed to ioremap registers\n"); |
|---|
| 178 | 173 | error = -ENXIO; |
|---|