Skip to content

Commit

Permalink
Input: ct82c710 - remove a redundant serio_register_port()
Browse files Browse the repository at this point in the history
We already call serio_register_port() in ct82c710_probe(),
thus remove a redundant serio_register_port() in ct82c710_init().

Looks like this bug is introduced by
916d83c
"Input: ct82c710 - convert to the new platform device interface"

[dtor@mail.ru: also move printk to where we register port]
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Axel Lin authored and Dmitry Torokhov committed Nov 22, 2010
1 parent ebcc019 commit f09830a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/input/serio/ct82c710.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ static int __devinit ct82c710_probe(struct platform_device *dev)

serio_register_port(ct82c710_port);

printk(KERN_INFO "serio: C&T 82c710 mouse port at %#llx irq %d\n",
(unsigned long long)CT82C710_DATA, CT82C710_IRQ);

return 0;
}

Expand Down Expand Up @@ -237,11 +240,6 @@ static int __init ct82c710_init(void)
if (error)
goto err_free_device;

serio_register_port(ct82c710_port);

printk(KERN_INFO "serio: C&T 82c710 mouse port at %#llx irq %d\n",
(unsigned long long)CT82C710_DATA, CT82C710_IRQ);

return 0;

err_free_device:
Expand Down

0 comments on commit f09830a

Please sign in to comment.