summaryrefslogtreecommitdiff
path: root/extras/mtd_probe/probe_smartmedia.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-06-23 22:29:58 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-06-23 22:29:58 +0200
commit5f307a98fadcded368bbe8f95c445d0cc152a93e (patch)
tree379dbdb0cabc64a59e1763daa2522141078aefd3 /extras/mtd_probe/probe_smartmedia.c
parent674c3412bb5c921e611ad1289e21e9e3b4df9bf7 (diff)
mtd_probe: add needed include, modprobe blacklist flag, and change some whitespace
Diffstat (limited to 'extras/mtd_probe/probe_smartmedia.c')
-rw-r--r--extras/mtd_probe/probe_smartmedia.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/extras/mtd_probe/probe_smartmedia.c b/extras/mtd_probe/probe_smartmedia.c
index ab6edea4b1..78841f05da 100644
--- a/extras/mtd_probe/probe_smartmedia.c
+++ b/extras/mtd_probe/probe_smartmedia.c
@@ -1,7 +1,4 @@
/*
- * probe_smartmedia.c
- * This file is part of mtd_probe
- *
* Copyright (C) 2010 - Maxim Levitsky
*
* mtd_probe is free software; you can redistribute it and/or modify
@@ -23,7 +20,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <mtd/mtd-user.h>
-
+#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -37,9 +34,10 @@ static const uint8_t cis_signature[] = {
};
-void probe_smart_media(int mtd_fd, mtd_info_t* info) {
-
+void probe_smart_media(int mtd_fd, mtd_info_t* info)
+{
char* cis_buffer = malloc(SM_SECTOR_SIZE);
+
if (!cis_buffer)
return;