Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /************************************************************************ |
| 2 | * Copyright 2003 Digi International (www.digi.com) |
| 3 | * |
| 4 | * Copyright (C) 2004 IBM Corporation. All rights reserved. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2, or (at your option) |
| 9 | * any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED; without even the |
| 13 | * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 14 | * PURPOSE. See the GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 59 * Temple Place - Suite 330, Boston, |
| 19 | * MA 02111-1307, USA. |
| 20 | * |
| 21 | * Contact Information: |
| 22 | * Scott H Kilau <Scott_Kilau@digi.com> |
Adrian Bunk | 2a08b4e | 2006-04-01 01:04:20 +0200 | [diff] [blame] | 23 | * Wendy Xiong <wendyx@us.ibm.com> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | * |
V. ANANDA KRISHNAN | c223695 | 2005-07-27 11:43:49 -0700 | [diff] [blame] | 25 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | ***********************************************************************/ |
Paul Gortmaker | 578b9ce | 2011-05-27 16:14:23 -0400 | [diff] [blame] | 27 | #include <linux/module.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | #include <linux/pci.h> |
Tejun Heo | 5a0e3ad | 2010-03-24 17:04:11 +0900 | [diff] [blame] | 29 | #include <linux/slab.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | |
| 31 | #include "jsm.h" |
| 32 | |
| 33 | MODULE_AUTHOR("Digi International, http://www.digi.com"); |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 34 | MODULE_DESCRIPTION("Driver for the Digi International " |
| 35 | "Neo PCI based product line"); |
| 36 | MODULE_LICENSE("GPL"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | MODULE_SUPPORTED_DEVICE("jsm"); |
| 38 | |
| 39 | #define JSM_DRIVER_NAME "jsm" |
| 40 | #define NR_PORTS 32 |
| 41 | #define JSM_MINOR_START 0 |
| 42 | |
| 43 | struct uart_driver jsm_uart_driver = { |
| 44 | .owner = THIS_MODULE, |
| 45 | .driver_name = JSM_DRIVER_NAME, |
| 46 | .dev_name = "ttyn", |
V. ANANDA KRISHNAN | 9539c1d | 2005-07-27 11:43:48 -0700 | [diff] [blame] | 47 | .major = 0, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 48 | .minor = JSM_MINOR_START, |
| 49 | .nr = NR_PORTS, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 50 | }; |
| 51 | |
Breno Leitao | e6bdf24 | 2009-10-14 14:57:51 -0300 | [diff] [blame] | 52 | static pci_ers_result_t jsm_io_error_detected(struct pci_dev *pdev, |
| 53 | pci_channel_state_t state); |
| 54 | static pci_ers_result_t jsm_io_slot_reset(struct pci_dev *pdev); |
| 55 | static void jsm_io_resume(struct pci_dev *pdev); |
| 56 | |
Stephen Hemminger | 1d35203 | 2012-09-07 09:33:17 -0700 | [diff] [blame] | 57 | static const struct pci_error_handlers jsm_err_handler = { |
Breno Leitao | e6bdf24 | 2009-10-14 14:57:51 -0300 | [diff] [blame] | 58 | .error_detected = jsm_io_error_detected, |
| 59 | .slot_reset = jsm_io_slot_reset, |
| 60 | .resume = jsm_io_resume, |
| 61 | }; |
| 62 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 63 | int jsm_debug; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 64 | module_param(jsm_debug, int, 0); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 65 | MODULE_PARM_DESC(jsm_debug, "Driver debugging level"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 66 | |
Bill Pemberton | 9671f09 | 2012-11-19 13:21:50 -0500 | [diff] [blame] | 67 | static int jsm_probe_one(struct pci_dev *pdev, const struct pci_device_id *ent) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 68 | { |
| 69 | int rc = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 70 | struct jsm_board *brd; |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 71 | static int adapter_count = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 72 | |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 73 | rc = pci_enable_device(pdev); |
| 74 | if (rc) { |
| 75 | dev_err(&pdev->dev, "Device enable FAILED\n"); |
| 76 | goto out; |
| 77 | } |
| 78 | |
| 79 | rc = pci_request_regions(pdev, "jsm"); |
| 80 | if (rc) { |
| 81 | dev_err(&pdev->dev, "pci_request_region FAILED\n"); |
| 82 | goto out_disable_device; |
| 83 | } |
| 84 | |
Burman Yan | 8f31bb3 | 2007-02-14 00:33:07 -0800 | [diff] [blame] | 85 | brd = kzalloc(sizeof(struct jsm_board), GFP_KERNEL); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 86 | if (!brd) { |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 87 | dev_err(&pdev->dev, |
| 88 | "memory allocation for board structure failed\n"); |
| 89 | rc = -ENOMEM; |
| 90 | goto out_release_regions; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 91 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 92 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 93 | /* store the info for the board we've found */ |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 94 | brd->boardnum = adapter_count++; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 95 | brd->pci_dev = pdev; |
Scott Kilau | 99da904 | 2008-05-01 04:35:00 -0700 | [diff] [blame] | 96 | if (pdev->device == PCIE_DEVICE_ID_NEO_4_IBM) |
| 97 | brd->maxports = 4; |
Adam Lackorzynski | ffa7525 | 2009-02-18 14:48:34 -0800 | [diff] [blame] | 98 | else if (pdev->device == PCI_DEVICE_ID_DIGI_NEO_8) |
| 99 | brd->maxports = 8; |
Scott Kilau | 99da904 | 2008-05-01 04:35:00 -0700 | [diff] [blame] | 100 | else |
| 101 | brd->maxports = 2; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 102 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 103 | spin_lock_init(&brd->bd_intr_lock); |
| 104 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 105 | /* store which revision we have */ |
Auke Kok | 44c1013 | 2007-06-08 15:46:36 -0700 | [diff] [blame] | 106 | brd->rev = pdev->revision; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 107 | |
| 108 | brd->irq = pdev->irq; |
| 109 | |
Joe Perches | 669fef4 | 2012-10-28 03:48:57 -0700 | [diff] [blame] | 110 | jsm_dbg(INIT, &brd->pci_dev, "jsm_found_board - NEO adapter\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 111 | |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 112 | /* get the PCI Base Address Registers */ |
| 113 | brd->membase = pci_resource_start(pdev, 0); |
| 114 | brd->membase_end = pci_resource_end(pdev, 0); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 115 | |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 116 | if (brd->membase & 1) |
| 117 | brd->membase &= ~3; |
| 118 | else |
| 119 | brd->membase &= ~15; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 120 | |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 121 | /* Assign the board_ops struct */ |
| 122 | brd->bd_ops = &jsm_neo_ops; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 123 | |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 124 | brd->bd_uart_offset = 0x200; |
| 125 | brd->bd_dividend = 921600; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 126 | |
Lennart Sorensen | af99d6f | 2011-06-01 14:38:41 -0400 | [diff] [blame] | 127 | brd->re_map_membase = ioremap(brd->membase, pci_resource_len(pdev, 0)); |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 128 | if (!brd->re_map_membase) { |
| 129 | dev_err(&pdev->dev, |
| 130 | "card has no PCI Memory resources, " |
| 131 | "failing board.\n"); |
| 132 | rc = -ENOMEM; |
| 133 | goto out_kfree_brd; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 134 | } |
| 135 | |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 136 | rc = request_irq(brd->irq, brd->bd_ops->intr, |
Breno Leitão | a88a477 | 2009-09-24 16:58:22 -0300 | [diff] [blame] | 137 | IRQF_SHARED, "JSM", brd); |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 138 | if (rc) { |
| 139 | printk(KERN_WARNING "Failed to hook IRQ %d\n",brd->irq); |
| 140 | goto out_iounmap; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 141 | } |
| 142 | |
| 143 | rc = jsm_tty_init(brd); |
| 144 | if (rc < 0) { |
| 145 | dev_err(&pdev->dev, "Can't init tty devices (%d)\n", rc); |
Breno Leitao | e713abe | 2009-04-06 17:34:27 +0100 | [diff] [blame] | 146 | rc = -ENXIO; |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 147 | goto out_free_irq; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 148 | } |
| 149 | |
| 150 | rc = jsm_uart_port_init(brd); |
| 151 | if (rc < 0) { |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 152 | /* XXX: leaking all resources from jsm_tty_init here! */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 153 | dev_err(&pdev->dev, "Can't init uart port (%d)\n", rc); |
Breno Leitao | e713abe | 2009-04-06 17:34:27 +0100 | [diff] [blame] | 154 | rc = -ENXIO; |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 155 | goto out_free_irq; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 156 | } |
| 157 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 158 | /* Log the information about the board */ |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 159 | dev_info(&pdev->dev, "board %d: Digi Neo (rev %d), irq %d\n", |
| 160 | adapter_count, brd->rev, brd->irq); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 161 | |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 162 | pci_set_drvdata(pdev, brd); |
Breno Leitao | e6bdf24 | 2009-10-14 14:57:51 -0300 | [diff] [blame] | 163 | pci_save_state(pdev); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 164 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 165 | return 0; |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 166 | out_free_irq: |
Breno Leitao | 54862ee | 2010-02-25 15:31:49 -0300 | [diff] [blame] | 167 | jsm_remove_uart_port(brd); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 168 | free_irq(brd->irq, brd); |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 169 | out_iounmap: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 170 | iounmap(brd->re_map_membase); |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 171 | out_kfree_brd: |
| 172 | kfree(brd); |
| 173 | out_release_regions: |
| 174 | pci_release_regions(pdev); |
| 175 | out_disable_device: |
| 176 | pci_disable_device(pdev); |
| 177 | out: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 178 | return rc; |
| 179 | } |
| 180 | |
Bill Pemberton | ae8d8a1 | 2012-11-19 13:26:18 -0500 | [diff] [blame] | 181 | static void jsm_remove_one(struct pci_dev *pdev) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 182 | { |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 183 | struct jsm_board *brd = pci_get_drvdata(pdev); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 184 | int i = 0; |
| 185 | |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 186 | jsm_remove_uart_port(brd); |
| 187 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 188 | free_irq(brd->irq, brd); |
| 189 | iounmap(brd->re_map_membase); |
| 190 | |
| 191 | /* Free all allocated channels structs */ |
| 192 | for (i = 0; i < brd->maxports; i++) { |
| 193 | if (brd->channels[i]) { |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 194 | kfree(brd->channels[i]->ch_rqueue); |
| 195 | kfree(brd->channels[i]->ch_equeue); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 196 | kfree(brd->channels[i]); |
| 197 | } |
| 198 | } |
| 199 | |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 200 | pci_release_regions(pdev); |
| 201 | pci_disable_device(pdev); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 202 | kfree(brd); |
| 203 | } |
| 204 | |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 205 | static struct pci_device_id jsm_pci_tbl[] = { |
| 206 | { PCI_DEVICE(PCI_VENDOR_ID_DIGI, PCI_DEVICE_ID_NEO_2DB9), 0, 0, 0 }, |
| 207 | { PCI_DEVICE(PCI_VENDOR_ID_DIGI, PCI_DEVICE_ID_NEO_2DB9PRI), 0, 0, 1 }, |
| 208 | { PCI_DEVICE(PCI_VENDOR_ID_DIGI, PCI_DEVICE_ID_NEO_2RJ45), 0, 0, 2 }, |
| 209 | { PCI_DEVICE(PCI_VENDOR_ID_DIGI, PCI_DEVICE_ID_NEO_2RJ45PRI), 0, 0, 3 }, |
Scott Kilau | 99da904 | 2008-05-01 04:35:00 -0700 | [diff] [blame] | 210 | { PCI_DEVICE(PCI_VENDOR_ID_DIGI, PCIE_DEVICE_ID_NEO_4_IBM), 0, 0, 4 }, |
Adam Lackorzynski | ffa7525 | 2009-02-18 14:48:34 -0800 | [diff] [blame] | 211 | { PCI_DEVICE(PCI_VENDOR_ID_DIGI, PCI_DEVICE_ID_DIGI_NEO_8), 0, 0, 5 }, |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 212 | { 0, } |
| 213 | }; |
| 214 | MODULE_DEVICE_TABLE(pci, jsm_pci_tbl); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 215 | |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 216 | static struct pci_driver jsm_driver = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 217 | .name = "jsm", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 218 | .id_table = jsm_pci_tbl, |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 219 | .probe = jsm_probe_one, |
Bill Pemberton | 2d47b71 | 2012-11-19 13:21:34 -0500 | [diff] [blame] | 220 | .remove = jsm_remove_one, |
Breno Leitao | e6bdf24 | 2009-10-14 14:57:51 -0300 | [diff] [blame] | 221 | .err_handler = &jsm_err_handler, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 222 | }; |
| 223 | |
Breno Leitao | e6bdf24 | 2009-10-14 14:57:51 -0300 | [diff] [blame] | 224 | static pci_ers_result_t jsm_io_error_detected(struct pci_dev *pdev, |
| 225 | pci_channel_state_t state) |
| 226 | { |
| 227 | struct jsm_board *brd = pci_get_drvdata(pdev); |
| 228 | |
| 229 | jsm_remove_uart_port(brd); |
| 230 | |
| 231 | return PCI_ERS_RESULT_NEED_RESET; |
| 232 | } |
| 233 | |
| 234 | static pci_ers_result_t jsm_io_slot_reset(struct pci_dev *pdev) |
| 235 | { |
| 236 | int rc; |
| 237 | |
| 238 | rc = pci_enable_device(pdev); |
| 239 | |
| 240 | if (rc) |
| 241 | return PCI_ERS_RESULT_DISCONNECT; |
| 242 | |
| 243 | pci_set_master(pdev); |
| 244 | |
| 245 | return PCI_ERS_RESULT_RECOVERED; |
| 246 | } |
| 247 | |
| 248 | static void jsm_io_resume(struct pci_dev *pdev) |
| 249 | { |
| 250 | struct jsm_board *brd = pci_get_drvdata(pdev); |
| 251 | |
| 252 | pci_restore_state(pdev); |
Lucas Kannebley Tavares | 26aa38c | 2012-01-09 10:58:06 -0200 | [diff] [blame] | 253 | pci_save_state(pdev); |
Breno Leitao | e6bdf24 | 2009-10-14 14:57:51 -0300 | [diff] [blame] | 254 | |
| 255 | jsm_uart_port_init(brd); |
| 256 | } |
| 257 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 258 | static int __init jsm_init_module(void) |
| 259 | { |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 260 | int rc; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 261 | |
| 262 | rc = uart_register_driver(&jsm_uart_driver); |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 263 | if (!rc) { |
| 264 | rc = pci_register_driver(&jsm_driver); |
| 265 | if (rc) |
| 266 | uart_unregister_driver(&jsm_uart_driver); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 267 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 268 | return rc; |
| 269 | } |
| 270 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 271 | static void __exit jsm_exit_module(void) |
| 272 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 273 | pci_unregister_driver(&jsm_driver); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 274 | uart_unregister_driver(&jsm_uart_driver); |
| 275 | } |
Christoph Hellwig | 614a7d6 | 2005-04-16 15:25:44 -0700 | [diff] [blame] | 276 | |
| 277 | module_init(jsm_init_module); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 278 | module_exit(jsm_exit_module); |