.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /************************************************************************** |
---|
2 | 3 | * Initio 9100 device driver for Linux. |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * Copyright (c) 1998 Bas Vermeulen <bvermeul@blackstar.xs4all.nl> |
---|
6 | 7 | * Copyright (c) 2004 Christoph Hellwig <hch@lst.de> |
---|
7 | 8 | * Copyright (c) 2007 Red Hat |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License as published by |
---|
11 | | - * the Free Software Foundation; either version 2, or (at your option) |
---|
12 | | - * any later version. |
---|
13 | | - * |
---|
14 | | - * This program is distributed in the hope that it will be useful, |
---|
15 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
17 | | - * GNU General Public License for more details. |
---|
18 | | - * |
---|
19 | | - * You should have received a copy of the GNU General Public License |
---|
20 | | - * along with this program; see the file COPYING. If not, write to |
---|
21 | | - * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
22 | | - * |
---|
23 | 9 | * |
---|
24 | 10 | ************************************************************************* |
---|
25 | 11 | * |
---|
.. | .. |
---|
1654 | 1640 | * |
---|
1655 | 1641 | */ |
---|
1656 | 1642 | |
---|
1657 | | -int initio_state_7(struct initio_host * host) |
---|
| 1643 | +static int initio_state_7(struct initio_host * host) |
---|
1658 | 1644 | { |
---|
1659 | 1645 | int cnt, i; |
---|
1660 | 1646 | |
---|
.. | .. |
---|
2817 | 2803 | .can_queue = MAX_TARGETS * i91u_MAXQUEUE, |
---|
2818 | 2804 | .this_id = 1, |
---|
2819 | 2805 | .sg_tablesize = SG_ALL, |
---|
2820 | | - .use_clustering = ENABLE_CLUSTERING, |
---|
2821 | 2806 | }; |
---|
2822 | 2807 | |
---|
2823 | 2808 | static int initio_probe_one(struct pci_dev *pdev, |
---|
.. | .. |
---|
2840 | 2825 | reg = 0; |
---|
2841 | 2826 | bios_seg = (bios_seg << 8) + ((u16) ((reg & 0xFF00) >> 8)); |
---|
2842 | 2827 | |
---|
2843 | | - if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { |
---|
| 2828 | + if (dma_set_mask(&pdev->dev, DMA_BIT_MASK(32))) { |
---|
2844 | 2829 | printk(KERN_WARNING "i91u: Could not set 32 bit DMA mask\n"); |
---|
2845 | 2830 | error = -ENODEV; |
---|
2846 | 2831 | goto out_disable_device; |
---|
.. | .. |
---|
2977 | 2962 | .probe = initio_probe_one, |
---|
2978 | 2963 | .remove = initio_remove_one, |
---|
2979 | 2964 | }; |
---|
2980 | | - |
---|
2981 | | -static int __init initio_init_driver(void) |
---|
2982 | | -{ |
---|
2983 | | - return pci_register_driver(&initio_pci_driver); |
---|
2984 | | -} |
---|
2985 | | - |
---|
2986 | | -static void __exit initio_exit_driver(void) |
---|
2987 | | -{ |
---|
2988 | | - pci_unregister_driver(&initio_pci_driver); |
---|
2989 | | -} |
---|
| 2965 | +module_pci_driver(initio_pci_driver); |
---|
2990 | 2966 | |
---|
2991 | 2967 | MODULE_DESCRIPTION("Initio INI-9X00U/UW SCSI device driver"); |
---|
2992 | 2968 | MODULE_AUTHOR("Initio Corporation"); |
---|
2993 | 2969 | MODULE_LICENSE("GPL"); |
---|
2994 | | - |
---|
2995 | | -module_init(initio_init_driver); |
---|
2996 | | -module_exit(initio_exit_driver); |
---|