Deleted Added
full compact
atmegadci_atmelarm.c (190174) atmegadci_atmelarm.c (190183)
1#include <sys/cdefs.h>
1#include <sys/cdefs.h>
2__FBSDID("$FreeBSD: head/sys/dev/usb/controller/atmegadci_atmelarm.c 190174 2009-03-20 19:04:31Z thompsa $");
2__FBSDID("$FreeBSD: head/sys/dev/usb/controller/atmegadci_atmelarm.c 190183 2009-03-20 21:57:54Z thompsa $");
3
4/*-
5 * Copyright (c) 2009 Hans Petter Selasky. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

--- 97 unchanged lines hidden (view full) ---

108 }
109 sc->sc_otg.sc_bus.bdev = device_add_child(dev, "usbus", -1);
110 if (!(sc->sc_otg.sc_bus.bdev)) {
111 goto error;
112 }
113 device_set_ivars(sc->sc_otg.sc_bus.bdev, &sc->sc_otg.sc_bus);
114
115 err = bus_setup_intr(dev, sc->sc_otg.sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
3
4/*-
5 * Copyright (c) 2009 Hans Petter Selasky. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

--- 97 unchanged lines hidden (view full) ---

108 }
109 sc->sc_otg.sc_bus.bdev = device_add_child(dev, "usbus", -1);
110 if (!(sc->sc_otg.sc_bus.bdev)) {
111 goto error;
112 }
113 device_set_ivars(sc->sc_otg.sc_bus.bdev, &sc->sc_otg.sc_bus);
114
115 err = bus_setup_intr(dev, sc->sc_otg.sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
116 NULL, (void *)atmegadci_interrupt, sc, &sc->sc_otg.sc_intr_hdl);
116 NULL, (driver_intr_t *)atmegadci_interrupt, sc, &sc->sc_otg.sc_intr_hdl);
117 if (err) {
118 sc->sc_otg.sc_intr_hdl = NULL;
119 goto error;
120 }
121 err = atmegadci_init(&sc->sc_otg);
122 if (!err) {
123 err = device_probe_and_attach(sc->sc_otg.sc_bus.bdev);
124 }

--- 90 unchanged lines hidden ---
117 if (err) {
118 sc->sc_otg.sc_intr_hdl = NULL;
119 goto error;
120 }
121 err = atmegadci_init(&sc->sc_otg);
122 if (!err) {
123 err = device_probe_and_attach(sc->sc_otg.sc_bus.bdev);
124 }

--- 90 unchanged lines hidden ---