diff options
| author | Greg Kroah-Hartman <[email protected]> | 2013-07-08 11:34:19 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2013-07-24 13:45:04 -0700 |
| commit | 3ce20a710f1dac8f5073d1b138039c75dd46d967 (patch) | |
| tree | 1f8cf403ece5a59a3a8b1cea8788fdb53062caf9 /scripts/stackusage | |
| parent | 3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b (diff) | |
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
--
drivers/misc/c2port/core.c | 30 +++++++++++++-----------------
1 file changed, 13 insertions(+), 17 deletions(-)
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions