From: Davidlohr Bueso <dave@xxxxxxx> If sysfs_create_group() returns an error, we should return it in trackpoint_detect(), instead of -1. Signed-off-by: Davidlohr Bueso <dave@xxxxxxx> --- drivers/input/mouse/trackpoint.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/input/mouse/trackpoint.c b/drivers/input/mouse/trackpoint.c index 54b2fa8..e8b7c3f 100644 --- a/drivers/input/mouse/trackpoint.c +++ b/drivers/input/mouse/trackpoint.c @@ -324,7 +324,7 @@ int trackpoint_detect(struct psmouse *psmouse, bool set_properties) error); kfree(psmouse->private); psmouse->private = NULL; - return -1; + return error; } printk(KERN_INFO "IBM TrackPoint firmware: 0x%02x, buttons: %d/%d\n", -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html