all: Don't re-attach the kernel driver when we're done.

It actually breaks the Shinko s2145, and given that none of these
printers comply with the USBLP class anyway, it's no real loss.
This commit is contained in:
Solomon Peachy 2013-07-16 18:34:48 -04:00
parent 91d68621d5
commit 48a2df1196
5 changed files with 14 additions and 10 deletions

View file

@ -35,7 +35,7 @@
#include <fcntl.h>
#include <signal.h>
#define VERSION "0.16"
#define VERSION "0.17"
#define URI_PREFIX "kodak1400://"
#include "backend_common.c"
@ -675,9 +675,10 @@ done_claimed:
libusb_release_interface(dev, iface);
done_close:
#if 0
if (claimed)
libusb_attach_kernel_driver(dev, iface);
#endif
libusb_close(dev);
done:
if (plane_r)

View file

@ -35,7 +35,7 @@
#include <fcntl.h>
#include <signal.h>
#define VERSION "0.11"
#define VERSION "0.12"
#define URI_PREFIX "kodak6800://"
#define STR_LEN_MAX 64
@ -638,9 +638,10 @@ done_claimed:
libusb_release_interface(dev, iface);
done_close:
#if 0
if (claimed)
libusb_attach_kernel_driver(dev, iface);
#endif
libusb_close(dev);
done:
if (planedata)

View file

@ -35,7 +35,7 @@
#include <fcntl.h>
#include <signal.h>
#define VERSION "0.52"
#define VERSION "0.53"
#define URI_PREFIX "canonselphy://"
#include "backend_common.c"
@ -792,11 +792,11 @@ done_claimed:
libusb_release_interface(dev, iface);
done_close:
#if 0
if (claimed)
libusb_attach_kernel_driver(dev, iface);
#endif
libusb_close(dev);
done:
libusb_free_device_list(list, 1);
libusb_exit(ctx);

View file

@ -1490,9 +1490,10 @@ done_claimed:
libusb_release_interface(dev, iface);
done_close:
#if 0
if (claimed)
libusb_attach_kernel_driver(dev, iface);
#endif
libusb_close(dev);
done:
if (planedata)

View file

@ -35,7 +35,7 @@
#include <fcntl.h>
#include <signal.h>
#define VERSION "0.02"
#define VERSION "0.03"
#define URI_PREFIX "sonyupdr150://"
#define STR_LEN_MAX 64
@ -295,9 +295,10 @@ done_claimed:
libusb_release_interface(dev, iface);
done_close:
#if 0
if (claimed)
libusb_attach_kernel_driver(dev, iface);
#endif
libusb_close(dev);
done: