]> git.baikalelectronics.ru Git - kernel.git/commit
USB: Fix debugfs_create_file's error checking method for usb/gadget/s3c2410_udc
authorZhaolei <zhaolei@cn.fujitsu.com>
Mon, 20 Oct 2008 10:53:04 +0000 (18:53 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Oct 2008 17:05:27 +0000 (10:05 -0700)
commit0a255e758179abd0e8bb42eda95e1f71c6f29751
tree3f718e0659b093e6064fa15afc4fcb4c3826b257
parentb8b96b8fefb4589d340e8baad4ff82c6b1415853
USB: Fix debugfs_create_file's error checking method for usb/gadget/s3c2410_udc

debugfs_create_file() returns NULL if an error occurs, returns -ENODEV
when debugfs is not enabled in the kernel.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/s3c2410_udc.c