projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm...
[deliverable/linux.git]
/
drivers
/
rapidio
/
devices
/
rio_mport_cdev.c
diff --git
a/drivers/rapidio/devices/rio_mport_cdev.c
b/drivers/rapidio/devices/rio_mport_cdev.c
index 5d4d9184635758556715637e43c45bec476df970..96168b8190449ccc1bee6e24ef0758af1bb3c69c 100644
(file)
--- a/
drivers/rapidio/devices/rio_mport_cdev.c
+++ b/
drivers/rapidio/devices/rio_mport_cdev.c
@@
-2669,9
+2669,9
@@
static int __init mport_init(void)
/* Create device class needed by udev */
dev_class = class_create(THIS_MODULE, DRV_NAME);
/* Create device class needed by udev */
dev_class = class_create(THIS_MODULE, DRV_NAME);
- if (
!dev_class
) {
+ if (
IS_ERR(dev_class)
) {
rmcd_error("Unable to create " DRV_NAME " class");
rmcd_error("Unable to create " DRV_NAME " class");
- return
-EINVAL
;
+ return
PTR_ERR(dev_class)
;
}
ret = alloc_chrdev_region(&dev_number, 0, RIO_MAX_MPORTS, DRV_NAME);
}
ret = alloc_chrdev_region(&dev_number, 0, RIO_MAX_MPORTS, DRV_NAME);
This page took
0.024239 seconds
and
5
git commands to generate.