From: Dmitry Torokhov Date: Tue, 29 Sep 2015 23:28:52 +0000 (-0700) Subject: Merge tag 'v4.3-rc3' into next X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8f697e574012cc73b6b0dcbf30d88a3a0f43b78f;p=linux.git Merge tag 'v4.3-rc3' into next Merge with Linux 4.3-rc3 to bring in MFD DA9062 changes to merge DA9062 OnKey driver. --- 8f697e574012cc73b6b0dcbf30d88a3a0f43b78f diff --cc drivers/input/joystick/turbografx.c index 5f7382af70c9e,891797ad76bcc..01e8ea92b9ad8 --- a/drivers/input/joystick/turbografx.c +++ b/drivers/input/joystick/turbografx.c @@@ -205,8 -196,9 +205,8 @@@ static void tgfx_attach(struct parport if (n_buttons[i] < 1) continue; - if (n_buttons[i] > 6) { + if (n_buttons[i] > ARRAY_SIZE(tgfx_buttons)) { printk(KERN_ERR "turbografx.c: Invalid number of buttons %d\n", n_buttons[i]); - err = -EINVAL; goto err_unreg_devs; }