diff options
| author | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-28 08:29:59 -0400 |
|---|---|---|
| committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-28 08:29:59 -0400 |
| commit | 185a257f2f73bcd89050ad02da5bedbc28fc43fa (patch) | |
| tree | 5e32586114534ed3f2165614cba3d578f5d87307 /drivers/usb/misc/phidget.c | |
| parent | 3f1a9aaeffd8d1cbc5ab9776c45cbd66af1c9699 (diff) | |
| parent | a77c64c1a641950626181b4857abb701d8f38ccc (diff) | |
Merge branch 'master' into gfs2
Diffstat (limited to 'drivers/usb/misc/phidget.c')
| -rw-r--r-- | drivers/usb/misc/phidget.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/drivers/usb/misc/phidget.c b/drivers/usb/misc/phidget.c new file mode 100644 index 000000000000..735ed33f4f7f --- /dev/null +++ b/drivers/usb/misc/phidget.c | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | /* | ||
| 2 | * USB Phidgets class | ||
| 3 | * | ||
| 4 | * Copyright (C) 2006 Sean Young <sean@mess.org> | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | */ | ||
| 11 | |||
| 12 | #include <linux/kernel.h> | ||
| 13 | #include <linux/module.h> | ||
| 14 | #include <linux/init.h> | ||
| 15 | #include <linux/err.h> | ||
| 16 | #include <linux/device.h> | ||
| 17 | |||
| 18 | struct class *phidget_class; | ||
| 19 | |||
| 20 | static int __init init_phidget(void) | ||
| 21 | { | ||
| 22 | phidget_class = class_create(THIS_MODULE, "phidget"); | ||
| 23 | |||
| 24 | if (IS_ERR(phidget_class)) | ||
| 25 | return PTR_ERR(phidget_class); | ||
| 26 | |||
| 27 | return 0; | ||
| 28 | } | ||
| 29 | |||
| 30 | static void __exit cleanup_phidget(void) | ||
| 31 | { | ||
| 32 | class_destroy(phidget_class); | ||
| 33 | } | ||
| 34 | |||
| 35 | EXPORT_SYMBOL_GPL(phidget_class); | ||
| 36 | |||
| 37 | module_init(init_phidget); | ||
| 38 | module_exit(cleanup_phidget); | ||
| 39 | |||
| 40 | MODULE_LICENSE("GPL"); | ||
| 41 | MODULE_AUTHOR("Sean Young <sean@mess.org>"); | ||
| 42 | MODULE_DESCRIPTION("Container module for phidget class"); | ||
| 43 | |||
