[char-misc 2/2] samples: mei: use /dev/mei0 instead of /dev/mei
From: Tomas Winkler
Date: Thu Jan 24 2019 - 06:52:17 EST
The device was moved from misc device to character devices
to support multiple mei devices.
Cc: <stable@xxxxxxxxxxxxxxx> #v4.9+
Signed-off-by: Tomas Winkler <tomas.winkler@xxxxxxxxx>
---
samples/mei/mei-amt-version.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/mei/mei-amt-version.c b/samples/mei/mei-amt-version.c
index 33e67bd1dc34..32234481ad7d 100644
--- a/samples/mei/mei-amt-version.c
+++ b/samples/mei/mei-amt-version.c
@@ -117,7 +117,7 @@ static bool mei_init(struct mei *me, const uuid_le *guid,
me->verbose = verbose;
- me->fd = open("/dev/mei", O_RDWR);
+ me->fd = open("/dev/mei0", O_RDWR);
if (me->fd == -1) {
mei_err(me, "Cannot establish a handle to the Intel MEI driver\n");
goto err;
--
2.20.1