| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* -*- mode: c; c-basic-offset: 8 -*- */ |
|---|
| 2 | 3 | |
|---|
| 3 | 4 | /* SNI RM driver |
|---|
| .. | .. |
|---|
| 5 | 6 | * Copyright (C) 2001 by James.Bottomley@HansenPartnership.com |
|---|
| 6 | 7 | **----------------------------------------------------------------------------- |
|---|
| 7 | 8 | ** |
|---|
| 8 | | -** This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | -** it under the terms of the GNU General Public License as published by |
|---|
| 10 | | -** the Free Software Foundation; either version 2 of the License, or |
|---|
| 11 | | -** (at your option) any later version. |
|---|
| 12 | | -** |
|---|
| 13 | | -** This program is distributed in the hope that it will be useful, |
|---|
| 14 | | -** but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | | -** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | | -** GNU General Public License for more details. |
|---|
| 17 | | -** |
|---|
| 18 | | -** You should have received a copy of the GNU General Public License |
|---|
| 19 | | -** along with this program; if not, write to the Free Software |
|---|
| 20 | | -** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|---|
| 21 | 9 | ** |
|---|
| 22 | 10 | **----------------------------------------------------------------------------- |
|---|
| 23 | 11 | */ |
|---|
| .. | .. |
|---|
| 40 | 28 | #include <linux/platform_device.h> |
|---|
| 41 | 29 | |
|---|
| 42 | 30 | #include <asm/page.h> |
|---|
| 43 | | -#include <asm/pgtable.h> |
|---|
| 44 | 31 | #include <asm/irq.h> |
|---|
| 45 | 32 | #include <asm/delay.h> |
|---|
| 46 | 33 | |
|---|
| .. | .. |
|---|
| 84 | 71 | |
|---|
| 85 | 72 | hostdata->dev = &dev->dev; |
|---|
| 86 | 73 | dma_set_mask(&dev->dev, DMA_BIT_MASK(32)); |
|---|
| 87 | | - hostdata->base = ioremap_nocache(base, 0x100); |
|---|
| 74 | + hostdata->base = ioremap(base, 0x100); |
|---|
| 88 | 75 | hostdata->differential = 0; |
|---|
| 89 | 76 | |
|---|
| 90 | 77 | hostdata->clock = SNIRM710_CLOCK; |
|---|
| .. | .. |
|---|
| 140 | 127 | .name = "snirm_53c710", |
|---|
| 141 | 128 | }, |
|---|
| 142 | 129 | }; |
|---|
| 143 | | - |
|---|
| 144 | | -static int __init snirm710_init(void) |
|---|
| 145 | | -{ |
|---|
| 146 | | - return platform_driver_register(&snirm710_driver); |
|---|
| 147 | | -} |
|---|
| 148 | | - |
|---|
| 149 | | -static void __exit snirm710_exit(void) |
|---|
| 150 | | -{ |
|---|
| 151 | | - platform_driver_unregister(&snirm710_driver); |
|---|
| 152 | | -} |
|---|
| 153 | | - |
|---|
| 154 | | -module_init(snirm710_init); |
|---|
| 155 | | -module_exit(snirm710_exit); |
|---|
| 130 | +module_platform_driver(snirm710_driver); |
|---|