usb: musb: Make dma_controller_create __devinit
[deliverable/linux.git] / drivers / usb / musb / omap2430.c
CommitLineData
550a7375
FB
1/*
2 * Copyright (C) 2005-2007 by Texas Instruments
3 * Some code has been taken from tusb6010.c
4 * Copyrights for that are attributable to:
5 * Copyright (C) 2006 Nokia Corporation
550a7375
FB
6 * Tony Lindgren <tony@atomide.com>
7 *
8 * This file is part of the Inventra Controller Driver for Linux.
9 *
10 * The Inventra Controller Driver for Linux is free software; you
11 * can redistribute it and/or modify it under the terms of the GNU
12 * General Public License version 2 as published by the Free Software
13 * Foundation.
14 *
15 * The Inventra Controller Driver for Linux is distributed in
16 * the hope that it will be useful, but WITHOUT ANY WARRANTY;
17 * without even the implied warranty of MERCHANTABILITY or
18 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
19 * License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with The Inventra Controller Driver for Linux ; if not,
23 * write to the Free Software Foundation, Inc., 59 Temple Place,
24 * Suite 330, Boston, MA 02111-1307 USA
25 *
26 */
27#include <linux/module.h>
28#include <linux/kernel.h>
29#include <linux/sched.h>
550a7375
FB
30#include <linux/init.h>
31#include <linux/list.h>
550a7375 32#include <linux/io.h>
dc09886b
FB
33#include <linux/platform_device.h>
34#include <linux/dma-mapping.h>
207b0e1f
HH
35#include <linux/pm_runtime.h>
36#include <linux/err.h>
c9721438 37#include <linux/usb/musb-omap.h>
550a7375 38
550a7375
FB
39#include "musb_core.h"
40#include "omap2430.h"
41
a3cee12a
FB
42struct omap2430_glue {
43 struct device *dev;
44 struct platform_device *musb;
c9721438 45 enum omap_musb_vbus_id_status status;
1e5acb8d 46 struct work_struct omap_musb_mailbox_work;
a3cee12a 47};
c20aebb9 48#define glue_to_musb(g) platform_get_drvdata(g->musb)
a3cee12a 49
c9721438
KVA
50struct omap2430_glue *_glue;
51
550a7375
FB
52static struct timer_list musb_idle_timer;
53
54static void musb_do_idle(unsigned long _musb)
55{
56 struct musb *musb = (void *)_musb;
57 unsigned long flags;
58 u8 power;
59 u8 devctl;
60
550a7375
FB
61 spin_lock_irqsave(&musb->lock, flags);
62
84e250ff 63 switch (musb->xceiv->state) {
550a7375 64 case OTG_STATE_A_WAIT_BCON:
550a7375
FB
65
66 devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
67 if (devctl & MUSB_DEVCTL_BDEVICE) {
84e250ff 68 musb->xceiv->state = OTG_STATE_B_IDLE;
550a7375
FB
69 MUSB_DEV_MODE(musb);
70 } else {
84e250ff 71 musb->xceiv->state = OTG_STATE_A_IDLE;
550a7375
FB
72 MUSB_HST_MODE(musb);
73 }
74 break;
550a7375
FB
75 case OTG_STATE_A_SUSPEND:
76 /* finish RESUME signaling? */
77 if (musb->port1_status & MUSB_PORT_STAT_RESUME) {
78 power = musb_readb(musb->mregs, MUSB_POWER);
79 power &= ~MUSB_POWER_RESUME;
5c8a86e1 80 dev_dbg(musb->controller, "root port resume stopped, power %02x\n", power);
550a7375
FB
81 musb_writeb(musb->mregs, MUSB_POWER, power);
82 musb->is_active = 1;
83 musb->port1_status &= ~(USB_PORT_STAT_SUSPEND
84 | MUSB_PORT_STAT_RESUME);
85 musb->port1_status |= USB_PORT_STAT_C_SUSPEND << 16;
86 usb_hcd_poll_rh_status(musb_to_hcd(musb));
87 /* NOTE: it might really be A_WAIT_BCON ... */
84e250ff 88 musb->xceiv->state = OTG_STATE_A_HOST;
550a7375
FB
89 }
90 break;
550a7375
FB
91 case OTG_STATE_A_HOST:
92 devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
93 if (devctl & MUSB_DEVCTL_BDEVICE)
84e250ff 94 musb->xceiv->state = OTG_STATE_B_IDLE;
550a7375 95 else
84e250ff 96 musb->xceiv->state = OTG_STATE_A_WAIT_BCON;
550a7375
FB
97 default:
98 break;
99 }
100 spin_unlock_irqrestore(&musb->lock, flags);
101}
102
103
743411b3 104static void omap2430_musb_try_idle(struct musb *musb, unsigned long timeout)
550a7375
FB
105{
106 unsigned long default_timeout = jiffies + msecs_to_jiffies(3);
107 static unsigned long last_timer;
108
109 if (timeout == 0)
110 timeout = default_timeout;
111
112 /* Never idle if active, or when VBUS timeout is not set as host */
113 if (musb->is_active || ((musb->a_wait_bcon == 0)
84e250ff 114 && (musb->xceiv->state == OTG_STATE_A_WAIT_BCON))) {
5c8a86e1 115 dev_dbg(musb->controller, "%s active, deleting timer\n",
3df00453 116 otg_state_string(musb->xceiv->state));
550a7375
FB
117 del_timer(&musb_idle_timer);
118 last_timer = jiffies;
119 return;
120 }
121
122 if (time_after(last_timer, timeout)) {
123 if (!timer_pending(&musb_idle_timer))
124 last_timer = timeout;
125 else {
5c8a86e1 126 dev_dbg(musb->controller, "Longer idle timer already pending, ignoring\n");
550a7375
FB
127 return;
128 }
129 }
130 last_timer = timeout;
131
5c8a86e1 132 dev_dbg(musb->controller, "%s inactive, for idle timer for %lu ms\n",
3df00453 133 otg_state_string(musb->xceiv->state),
550a7375
FB
134 (unsigned long)jiffies_to_msecs(timeout - jiffies));
135 mod_timer(&musb_idle_timer, timeout);
136}
137
743411b3 138static void omap2430_musb_set_vbus(struct musb *musb, int is_on)
550a7375 139{
d445b6da 140 struct usb_otg *otg = musb->xceiv->otg;
550a7375 141 u8 devctl;
594632ef
HH
142 unsigned long timeout = jiffies + msecs_to_jiffies(1000);
143 int ret = 1;
550a7375
FB
144 /* HDRC controls CPEN, but beware current surges during device
145 * connect. They can trigger transient overcurrent conditions
146 * that must be ignored.
147 */
148
149 devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
150
151 if (is_on) {
594632ef
HH
152 if (musb->xceiv->state == OTG_STATE_A_IDLE) {
153 /* start the session */
154 devctl |= MUSB_DEVCTL_SESSION;
155 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl);
156 /*
157 * Wait for the musb to set as A device to enable the
158 * VBUS
159 */
160 while (musb_readb(musb->mregs, MUSB_DEVCTL) & 0x80) {
161
162 cpu_relax();
163
164 if (time_after(jiffies, timeout)) {
165 dev_err(musb->controller,
166 "configured as A device timeout");
167 ret = -EINVAL;
168 break;
169 }
170 }
171
6e13c650
HK
172 if (ret && otg->set_vbus)
173 otg_set_vbus(otg, 1);
594632ef
HH
174 } else {
175 musb->is_active = 1;
d445b6da 176 otg->default_a = 1;
594632ef
HH
177 musb->xceiv->state = OTG_STATE_A_WAIT_VRISE;
178 devctl |= MUSB_DEVCTL_SESSION;
179 MUSB_HST_MODE(musb);
180 }
550a7375
FB
181 } else {
182 musb->is_active = 0;
183
184 /* NOTE: we're skipping A_WAIT_VFALL -> A_IDLE and
185 * jumping right to B_IDLE...
186 */
187
d445b6da 188 otg->default_a = 0;
84e250ff 189 musb->xceiv->state = OTG_STATE_B_IDLE;
550a7375
FB
190 devctl &= ~MUSB_DEVCTL_SESSION;
191
192 MUSB_DEV_MODE(musb);
193 }
194 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl);
195
5c8a86e1 196 dev_dbg(musb->controller, "VBUS %s, devctl %02x "
550a7375 197 /* otg %3x conf %08x prcm %08x */ "\n",
3df00453 198 otg_state_string(musb->xceiv->state),
550a7375
FB
199 musb_readb(musb->mregs, MUSB_DEVCTL));
200}
550a7375 201
743411b3 202static int omap2430_musb_set_mode(struct musb *musb, u8 musb_mode)
550a7375
FB
203{
204 u8 devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
205
206 devctl |= MUSB_DEVCTL_SESSION;
207 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl);
208
96a274d1 209 return 0;
550a7375
FB
210}
211
c20aebb9
FB
212static inline void omap2430_low_level_exit(struct musb *musb)
213{
214 u32 l;
215
216 /* in any role */
217 l = musb_readl(musb->mregs, OTG_FORCESTDBY);
218 l |= ENABLEFORCE; /* enable MSTANDBY */
219 musb_writel(musb->mregs, OTG_FORCESTDBY, l);
c20aebb9
FB
220}
221
222static inline void omap2430_low_level_init(struct musb *musb)
223{
224 u32 l;
225
c20aebb9
FB
226 l = musb_readl(musb->mregs, OTG_FORCESTDBY);
227 l &= ~ENABLEFORCE; /* disable MSTANDBY */
228 musb_writel(musb->mregs, OTG_FORCESTDBY, l);
229}
230
c9721438 231void omap_musb_mailbox(enum omap_musb_vbus_id_status status)
594632ef 232{
c9721438
KVA
233 struct omap2430_glue *glue = _glue;
234 struct musb *musb = glue_to_musb(glue);
712d8efa 235
c9721438
KVA
236 glue->status = status;
237 if (!musb) {
238 dev_err(glue->dev, "musb core is not yet ready\n");
239 return;
240 }
712d8efa 241
c9721438 242 schedule_work(&glue->omap_musb_mailbox_work);
712d8efa 243}
c9721438 244EXPORT_SYMBOL_GPL(omap_musb_mailbox);
712d8efa 245
c9721438 246static void omap_musb_set_mailbox(struct omap2430_glue *glue)
712d8efa 247{
1e5acb8d 248 struct musb *musb = glue_to_musb(glue);
594632ef
HH
249 struct device *dev = musb->controller;
250 struct musb_hdrc_platform_data *pdata = dev->platform_data;
251 struct omap_musb_board_data *data = pdata->board_data;
c83a8542 252 struct usb_otg *otg = musb->xceiv->otg;
594632ef 253
c9721438
KVA
254 switch (glue->status) {
255 case OMAP_MUSB_ID_GROUND:
256 dev_dbg(dev, "ID GND\n");
594632ef 257
c83a8542
KVA
258 otg->default_a = true;
259 musb->xceiv->state = OTG_STATE_A_IDLE;
c9721438 260 musb->xceiv->last_event = USB_EVENT_ID;
032ec49f 261 if (musb->gadget_driver) {
c9721438 262 pm_runtime_get_sync(dev);
b96d3b08 263 usb_phy_init(musb->xceiv);
70045c57 264 omap2430_musb_set_vbus(musb, 1);
594632ef
HH
265 }
266 break;
267
c9721438
KVA
268 case OMAP_MUSB_VBUS_VALID:
269 dev_dbg(dev, "VBUS Connect\n");
594632ef 270
c83a8542
KVA
271 otg->default_a = false;
272 musb->xceiv->state = OTG_STATE_B_IDLE;
c9721438 273 musb->xceiv->last_event = USB_EVENT_VBUS;
7acc6197 274 if (musb->gadget_driver)
c9721438 275 pm_runtime_get_sync(dev);
b96d3b08 276 usb_phy_init(musb->xceiv);
594632ef
HH
277 break;
278
c9721438
KVA
279 case OMAP_MUSB_ID_FLOAT:
280 case OMAP_MUSB_VBUS_OFF:
281 dev_dbg(dev, "VBUS Disconnect\n");
594632ef 282
c9721438 283 musb->xceiv->last_event = USB_EVENT_NONE;
032ec49f
FB
284 if (musb->gadget_driver) {
285 pm_runtime_mark_last_busy(dev);
286 pm_runtime_put_autosuspend(dev);
287 }
7acc6197 288
594632ef 289 if (data->interface_type == MUSB_INTERFACE_UTMI) {
6e13c650
HK
290 if (musb->xceiv->otg->set_vbus)
291 otg_set_vbus(musb->xceiv->otg, 0);
594632ef 292 }
b96d3b08 293 usb_phy_shutdown(musb->xceiv);
594632ef
HH
294 break;
295 default:
c9721438 296 dev_dbg(dev, "ID float\n");
594632ef 297 }
594632ef
HH
298}
299
c9721438
KVA
300
301static void omap_musb_mailbox_work(struct work_struct *mailbox_work)
302{
303 struct omap2430_glue *glue = container_of(mailbox_work,
304 struct omap2430_glue, omap_musb_mailbox_work);
305 omap_musb_set_mailbox(glue);
306}
307
743411b3 308static int omap2430_musb_init(struct musb *musb)
550a7375 309{
ad579699
S
310 u32 l;
311 int status = 0;
ea65df57 312 struct device *dev = musb->controller;
c9721438 313 struct omap2430_glue *glue = dev_get_drvdata(dev->parent);
ea65df57
HK
314 struct musb_hdrc_platform_data *plat = dev->platform_data;
315 struct omap_musb_board_data *data = plat->board_data;
550a7375 316
84e250ff
DB
317 /* We require some kind of external transceiver, hooked
318 * up through ULPI. TWL4030-family PMICs include one,
319 * which needs a driver, drivers aren't always needed.
320 */
b1183c24 321 musb->xceiv = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2);
ded017ee 322 if (IS_ERR_OR_NULL(musb->xceiv)) {
84e250ff
DB
323 pr_err("HS USB OTG: no transceiver configured\n");
324 return -ENODEV;
325 }
326
7acc6197
HH
327 status = pm_runtime_get_sync(dev);
328 if (status < 0) {
ad579699 329 dev_err(dev, "pm_runtime_get_sync FAILED %d\n", status);
7acc6197
HH
330 goto err1;
331 }
550a7375 332
8573e6a6 333 l = musb_readl(musb->mregs, OTG_INTERFSEL);
de2e1b0c
MM
334
335 if (data->interface_type == MUSB_INTERFACE_UTMI) {
336 /* OMAP4 uses Internal PHY GS70 which uses UTMI interface */
337 l &= ~ULPI_12PIN; /* Disable ULPI */
338 l |= UTMI_8BIT; /* Enable UTMI */
339 } else {
340 l |= ULPI_12PIN;
341 }
342
8573e6a6 343 musb_writel(musb->mregs, OTG_INTERFSEL, l);
550a7375
FB
344
345 pr_debug("HS USB OTG: revision 0x%x, sysconfig 0x%02x, "
346 "sysstatus 0x%x, intrfsel 0x%x, simenable 0x%x\n",
8573e6a6
FB
347 musb_readl(musb->mregs, OTG_REVISION),
348 musb_readl(musb->mregs, OTG_SYSCONFIG),
349 musb_readl(musb->mregs, OTG_SYSSTATUS),
350 musb_readl(musb->mregs, OTG_INTERFSEL),
351 musb_readl(musb->mregs, OTG_SIMENABLE));
550a7375 352
550a7375
FB
353 setup_timer(&musb_idle_timer, musb_do_idle, (unsigned long) musb);
354
c9721438
KVA
355 if (glue->status != OMAP_MUSB_UNKNOWN)
356 omap_musb_set_mailbox(glue);
357
c04352a5 358 pm_runtime_put_noidle(musb->controller);
550a7375 359 return 0;
7acc6197
HH
360
361err1:
7acc6197 362 return status;
550a7375
FB
363}
364
002eda13
HH
365static void omap2430_musb_enable(struct musb *musb)
366{
367 u8 devctl;
368 unsigned long timeout = jiffies + msecs_to_jiffies(1000);
369 struct device *dev = musb->controller;
c9721438 370 struct omap2430_glue *glue = dev_get_drvdata(dev->parent);
002eda13
HH
371 struct musb_hdrc_platform_data *pdata = dev->platform_data;
372 struct omap_musb_board_data *data = pdata->board_data;
373
c9721438 374 switch (glue->status) {
002eda13 375
c9721438 376 case OMAP_MUSB_ID_GROUND:
b96d3b08 377 usb_phy_init(musb->xceiv);
08dec56e
FC
378 if (data->interface_type != MUSB_INTERFACE_UTMI)
379 break;
380 devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
381 /* start the session */
382 devctl |= MUSB_DEVCTL_SESSION;
383 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl);
384 while (musb_readb(musb->mregs, MUSB_DEVCTL) &
385 MUSB_DEVCTL_BDEVICE) {
386 cpu_relax();
387
388 if (time_after(jiffies, timeout)) {
389 dev_err(dev, "configured as A device timeout");
390 break;
002eda13
HH
391 }
392 }
393 break;
394
c9721438 395 case OMAP_MUSB_VBUS_VALID:
b96d3b08 396 usb_phy_init(musb->xceiv);
002eda13
HH
397 break;
398
399 default:
400 break;
401 }
402}
403
404static void omap2430_musb_disable(struct musb *musb)
405{
c9721438
KVA
406 struct device *dev = musb->controller;
407 struct omap2430_glue *glue = dev_get_drvdata(dev->parent);
408
409 if (glue->status != OMAP_MUSB_UNKNOWN)
b96d3b08 410 usb_phy_shutdown(musb->xceiv);
550a7375
FB
411}
412
743411b3 413static int omap2430_musb_exit(struct musb *musb)
550a7375 414{
19b9a83e 415 del_timer_sync(&musb_idle_timer);
550a7375 416
c20aebb9 417 omap2430_low_level_exit(musb);
c20aebb9 418
550a7375
FB
419 return 0;
420}
743411b3 421
f7ec9437 422static const struct musb_platform_ops omap2430_ops = {
743411b3
FB
423 .init = omap2430_musb_init,
424 .exit = omap2430_musb_exit,
425
743411b3
FB
426 .set_mode = omap2430_musb_set_mode,
427 .try_idle = omap2430_musb_try_idle,
428
429 .set_vbus = omap2430_musb_set_vbus,
002eda13
HH
430
431 .enable = omap2430_musb_enable,
432 .disable = omap2430_musb_disable,
743411b3 433};
dc09886b
FB
434
435static u64 omap2430_dmamask = DMA_BIT_MASK(32);
436
e9e8c85e 437static int __devinit omap2430_probe(struct platform_device *pdev)
dc09886b
FB
438{
439 struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data;
440 struct platform_device *musb;
a3cee12a 441 struct omap2430_glue *glue;
dc09886b
FB
442 int ret = -ENOMEM;
443
b1183c24 444 glue = devm_kzalloc(&pdev->dev, sizeof(*glue), GFP_KERNEL);
a3cee12a
FB
445 if (!glue) {
446 dev_err(&pdev->dev, "failed to allocate glue context\n");
447 goto err0;
448 }
449
dc09886b
FB
450 musb = platform_device_alloc("musb-hdrc", -1);
451 if (!musb) {
452 dev_err(&pdev->dev, "failed to allocate musb device\n");
b1183c24 453 goto err0;
dc09886b
FB
454 }
455
456 musb->dev.parent = &pdev->dev;
457 musb->dev.dma_mask = &omap2430_dmamask;
458 musb->dev.coherent_dma_mask = omap2430_dmamask;
459
a3cee12a
FB
460 glue->dev = &pdev->dev;
461 glue->musb = musb;
c9721438 462 glue->status = OMAP_MUSB_UNKNOWN;
a3cee12a 463
f7ec9437
FB
464 pdata->platform_ops = &omap2430_ops;
465
a3cee12a 466 platform_set_drvdata(pdev, glue);
dc09886b 467
c9721438
KVA
468 /*
469 * REVISIT if we ever have two instances of the wrapper, we will be
470 * in big trouble
471 */
472 _glue = glue;
473
1e5acb8d
KVA
474 INIT_WORK(&glue->omap_musb_mailbox_work, omap_musb_mailbox_work);
475
dc09886b
FB
476 ret = platform_device_add_resources(musb, pdev->resource,
477 pdev->num_resources);
478 if (ret) {
479 dev_err(&pdev->dev, "failed to add resources\n");
b1183c24 480 goto err1;
dc09886b
FB
481 }
482
483 ret = platform_device_add_data(musb, pdata, sizeof(*pdata));
484 if (ret) {
485 dev_err(&pdev->dev, "failed to add platform_data\n");
b1183c24 486 goto err1;
dc09886b
FB
487 }
488
3006dc8c
KVA
489 pm_runtime_enable(&pdev->dev);
490
dc09886b
FB
491 ret = platform_device_add(musb);
492 if (ret) {
493 dev_err(&pdev->dev, "failed to register musb device\n");
b1183c24 494 goto err1;
dc09886b
FB
495 }
496
207b0e1f 497 return 0;
03491761 498
a3cee12a 499err1:
b1183c24 500 platform_device_put(musb);
a3cee12a 501
dc09886b
FB
502err0:
503 return ret;
504}
505
e9e8c85e 506static int __devexit omap2430_remove(struct platform_device *pdev)
dc09886b 507{
a3cee12a 508 struct omap2430_glue *glue = platform_get_drvdata(pdev);
dc09886b 509
1e5acb8d 510 cancel_work_sync(&glue->omap_musb_mailbox_work);
f039df58 511 platform_device_unregister(glue->musb);
dc09886b
FB
512
513 return 0;
514}
515
c20aebb9 516#ifdef CONFIG_PM
c20aebb9 517
7acc6197 518static int omap2430_runtime_suspend(struct device *dev)
c20aebb9
FB
519{
520 struct omap2430_glue *glue = dev_get_drvdata(dev);
521 struct musb *musb = glue_to_musb(glue);
522
afb76df1
VZ
523 if (musb) {
524 musb->context.otg_interfsel = musb_readl(musb->mregs,
525 OTG_INTERFSEL);
e25bec16 526
afb76df1
VZ
527 omap2430_low_level_exit(musb);
528 usb_phy_set_suspend(musb->xceiv, 1);
529 }
c20aebb9
FB
530
531 return 0;
532}
533
7acc6197 534static int omap2430_runtime_resume(struct device *dev)
c20aebb9
FB
535{
536 struct omap2430_glue *glue = dev_get_drvdata(dev);
537 struct musb *musb = glue_to_musb(glue);
c20aebb9 538
afb76df1
VZ
539 if (musb) {
540 omap2430_low_level_init(musb);
541 musb_writel(musb->mregs, OTG_INTERFSEL,
542 musb->context.otg_interfsel);
e25bec16 543
afb76df1
VZ
544 usb_phy_set_suspend(musb->xceiv, 0);
545 }
c20aebb9
FB
546
547 return 0;
548}
549
550static struct dev_pm_ops omap2430_pm_ops = {
7acc6197
HH
551 .runtime_suspend = omap2430_runtime_suspend,
552 .runtime_resume = omap2430_runtime_resume,
c20aebb9
FB
553};
554
555#define DEV_PM_OPS (&omap2430_pm_ops)
556#else
557#define DEV_PM_OPS NULL
558#endif
559
dc09886b 560static struct platform_driver omap2430_driver = {
e9e8c85e
FB
561 .probe = omap2430_probe,
562 .remove = __devexit_p(omap2430_remove),
dc09886b
FB
563 .driver = {
564 .name = "musb-omap2430",
c20aebb9 565 .pm = DEV_PM_OPS,
dc09886b
FB
566 },
567};
568
569MODULE_DESCRIPTION("OMAP2PLUS MUSB Glue Layer");
570MODULE_AUTHOR("Felipe Balbi <balbi@ti.com>");
571MODULE_LICENSE("GPL v2");
572
573static int __init omap2430_init(void)
574{
e9e8c85e 575 return platform_driver_register(&omap2430_driver);
dc09886b 576}
c9721438 577subsys_initcall(omap2430_init);
dc09886b
FB
578
579static void __exit omap2430_exit(void)
580{
581 platform_driver_unregister(&omap2430_driver);
582}
583module_exit(omap2430_exit);
This page took 0.403523 seconds and 5 git commands to generate.