Deleted Added
full compact
uplcom.c (190749) uplcom.c (192499)
1/* $NetBSD: uplcom.c,v 1.21 2001/11/13 06:24:56 lukem Exp $ */
2
3#include <sys/cdefs.h>
1/* $NetBSD: uplcom.c,v 1.21 2001/11/13 06:24:56 lukem Exp $ */
2
3#include <sys/cdefs.h>
4__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uplcom.c 190749 2009-04-05 21:24:15Z piso $");
4__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uplcom.c 192499 2009-05-21 00:04:17Z thompsa $");
5
6/*-
7 * Copyright (c) 2001-2003, 2005 Shunsuke Akiyama <akiyama@jp.FreeBSD.org>.
8 * All rights reserved.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:

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

301
302static int
303uplcom_probe(device_t dev)
304{
305 struct usb2_attach_arg *uaa = device_get_ivars(dev);
306
307 DPRINTFN(11, "\n");
308
5
6/*-
7 * Copyright (c) 2001-2003, 2005 Shunsuke Akiyama <akiyama@jp.FreeBSD.org>.
8 * All rights reserved.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:

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

301
302static int
303uplcom_probe(device_t dev)
304{
305 struct usb2_attach_arg *uaa = device_get_ivars(dev);
306
307 DPRINTFN(11, "\n");
308
309 if (uaa->usb2_mode != USB_MODE_HOST) {
309 if (uaa->usb_mode != USB_MODE_HOST) {
310 return (ENXIO);
311 }
312 if (uaa->info.bConfigIndex != UPLCOM_CONFIG_INDEX) {
313 return (ENXIO);
314 }
315 if (uaa->info.bIfaceIndex != UPLCOM_IFACE_INDEX) {
316 return (ENXIO);
317 }

--- 521 unchanged lines hidden ---
310 return (ENXIO);
311 }
312 if (uaa->info.bConfigIndex != UPLCOM_CONFIG_INDEX) {
313 return (ENXIO);
314 }
315 if (uaa->info.bIfaceIndex != UPLCOM_IFACE_INDEX) {
316 return (ENXIO);
317 }

--- 521 unchanged lines hidden ---