cros_ec: use open() instead of file_open() wrapper

file_open() does a lot of helpful things which include creating a
file that doesn't exist if FILE_WRITE mode is set. This can have
unfortunate side-effects, though, such as when attempting to write
to a device node in /dev which doesn't exist and leaving behind
a regular file.

TEST=tested on Snow with 3.4 kernel, no longer see /dev/cros_ec
being created.

Change-Id: I46a3d9fc5397b75a993fa96043fde6913cf97498
Reviewed-by: Duncan Laurie <>
Commit-Queue: David Hendricks <>
Tested-by: David Hendricks <>
Reviewed-by: David Hendricks <>
1 file changed