25 May, 2011
1 commit
-
The older add_mtd_device()/add_mtd_partitions() and their removal
counterparts will soon be gone. Replace uses with mtd_device_register()
and mtd_device_unregister().Signed-off-by: Jamie Iles
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse
09 Jan, 2009
1 commit
-
MTD size is 64-bit now...
Pointed out by Randy Dunlap
Signed-off-by: David Woodhouse
11 Dec, 2008
1 commit
-
ARRAY_SIZE is more concise to use when the size of an array is divided by
the size of its type or the size of its first element.The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)//
@i@
@@#include
@depends on i using "paren.iso"@
type T;
T[] E;
@@- (sizeof(E)/sizeof(E[...]))
+ ARRAY_SIZE(E)
//Signed-off-by: Julia Lawall
Signed-off-by: Andrew Morton
Signed-off-by: David Woodhouse
10 Dec, 2008
1 commit
-
MTD internal API presently uses 32-bit values to represent
device size. This patch updates them to 64-bits but leaves
the external API unchanged. Extending the external API
is a separate issue for several reasons. First, no one
needs it at the moment. Secondly, whether the implementation
is done with IOCTLs, sysfs or both is still debated. Thirdly
external API changes require the internal API to be accepted
first.Note that although the MTD API will be able to support 64-bit
device sizes, existing drivers do not and are not required
to do so, although NAND base has been updated.In general, changing from 32-bit to 64-bit values cause little
or no changes to the majority of the code with the following
exceptions:
- printk message formats
- division and modulus of 64-bit values
- NAND base support
- 32-bit local variables used by mtdpart and mtdconcat
- naughtily assuming one structure maps to another
in MEMERASE ioctlSigned-off-by: Adrian Hunter
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse
05 Jun, 2008
1 commit
-
Once upon a time, the MTD repository was using CVS.
This patch therefore removes all usages of the no longer updated CVS
keywords from the MTD code.This also includes code that printed them to the user.
Signed-off-by: Adrian Bunk
Signed-off-by: David Woodhouse
29 Jun, 2007
2 commits
-
- make 2 needlessly global functions static
- remove the unused nettel_eraseconfig()Signed-off-by: Adrian Bunk
Cc: Greg Ungerer
Signed-off-by: Andrew Morton
Signed-off-by: David Woodhouse -
Signed-off-by: David Woodhouse
09 May, 2007
1 commit
-
Signed-off-by: Michael Opdenacker
Signed-off-by: Adrian Bunk
30 Nov, 2006
1 commit
-
The newly-added cafe_ecc.c had a lot of it because of the way the lookup
table was auto-generated; clean up the other files too while we're at it.Signed-off-by: David Woodhouse
29 Nov, 2006
1 commit
-
get_mtd_device() returns NULL in case of any failure. Teach it to return an
error code instead. Fix all users as well.Signed-off-by: Artem Bityutskiy
02 Oct, 2006
1 commit
-
Updated version of patch, in response to comments from Francois Romieu
Remove gratuitous casts from iounmap and initialisation of variables.
Signed-off-by: Amol Lad
Signed-off-by: David Woodhouse
22 Sep, 2006
1 commit
-
ioremap must be balanced by an iounmap and failing to do so can result
in a memory leak.Tested (compilation only) with:
- allmodconfig
- Modifying drivers/mtd/maps/Kconfig and drivers/mtd/nand/Kconfig to
make sure that the changed file is compiling without warningSigned-off-by: Amol Lad
Signed-off-by: David Woodhouse
29 May, 2006
1 commit
-
Most of those macros are unused and the used ones just obfuscate
the code. Remove them and fixup all users.Signed-off-by: Thomas Gleixner
12 Apr, 2006
1 commit
-
I just hit the following error and warning :
drivers/mtd/maps/nettel.c: In function `nettel_init':
drivers/mtd/maps/nettel.c:418: error: `ROOT_DEV' undeclared (first use in this function)
drivers/mtd/maps/nettel.c:418: error: (Each undeclared identifier is reported only once
drivers/mtd/maps/nettel.c:418: error: for each function it appears in.)
drivers/mtd/maps/nettel.c:418: warning: implicit declaration of function `MKDEV'
make[3]: *** [drivers/mtd/maps/nettel.o] Error 1
make[2]: *** [drivers/mtd/maps] Error 2
make[1]: *** [drivers/mtd] Error 2
The patch fixes the missing ROOT_DEV declaration by including linux/root_dev.h
and fixes the implicit declaration of MKDEV by including linux/kdev_t.h .Signed-off-by: Jesper Juhl
Signed-off-by: David Woodhouse
01 Apr, 2006
1 commit
-
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove
duplicates of the macro.Signed-off-by: Tobias Klauser
Cc: Thomas Gleixner
Acked-by: David Woodhouse
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
30 Nov, 2005
1 commit
-
The patch below fixes the following sparse warning:
drivers/mtd/maps/nettel.c:482:27: warning: Using plain integer as NULL pointer
Signed-off-by: Luiz Capitulino
Signed-off-by: Thomas Gleixner
07 Nov, 2005
1 commit
-
Signed-off-by: Thomas Gleixner
17 Apr, 2005
1 commit
-
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.Let it rip!