usbkbd.c (84abd88a70090cf00f9e45c3a81680874f17626e) usbkbd.c (3d61510f4ecacfe47c75c0eb51c0659dfa77fb1b)
1/*
2 * Copyright (c) 1999-2001 Vojtech Pavlik
3 *
4 * USB HIDBP Keyboard support
5 */
6
7/*
8 * This program is free software; you can redistribute it and/or modify

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

308 kbd->led->transfer_dma = kbd->leds_dma;
309 kbd->led->transfer_flags |= (URB_NO_TRANSFER_DMA_MAP | URB_NO_SETUP_DMA_MAP);
310
311 error = input_register_device(kbd->dev);
312 if (error)
313 goto fail2;
314
315 usb_set_intfdata(iface, kbd);
1/*
2 * Copyright (c) 1999-2001 Vojtech Pavlik
3 *
4 * USB HIDBP Keyboard support
5 */
6
7/*
8 * This program is free software; you can redistribute it and/or modify

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

308 kbd->led->transfer_dma = kbd->leds_dma;
309 kbd->led->transfer_flags |= (URB_NO_TRANSFER_DMA_MAP | URB_NO_SETUP_DMA_MAP);
310
311 error = input_register_device(kbd->dev);
312 if (error)
313 goto fail2;
314
315 usb_set_intfdata(iface, kbd);
316 device_set_wakeup_enable(&dev->dev, 1);
316 return 0;
317
318fail2:
319 usb_kbd_free_mem(dev, kbd);
320fail1:
321 input_free_device(input_dev);
322 kfree(kbd);
323 return error;

--- 46 unchanged lines hidden ---
317 return 0;
318
319fail2:
320 usb_kbd_free_mem(dev, kbd);
321fail1:
322 input_free_device(input_dev);
323 kfree(kbd);
324 return error;

--- 46 unchanged lines hidden ---