]> git.baikalelectronics.ru Git - kernel.git/commit
misc: c2port: use dev_bin_attrs instead of hand-coding it
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jul 2013 22:05:04 +0000 (15:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jul 2013 22:39:04 +0000 (15:39 -0700)
commit56ebae54c17323c886268790916769ed10e6fdbb
tree1f8cf403ece5a59a3a8b1cea8788fdb53062caf9
parent617537d2ebf9f8060e43c17ed9a7bf6d98b03f36
misc: c2port: use dev_bin_attrs instead of hand-coding it

Classes support a list of default binary attributes, so use that in the
c2port driver, instead of hand creating and destroying the file, which
is racing with userspace.  Bonus is this removes lines of code.

Cc: Rodolfo Giometti <giometti@linux.it>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/c2port/core.c