diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-07-19 22:47:38 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-07-31 09:45:52 +0200 |
commit | 110ab1582670392c1d8b805e701f5b7b7efcb120 (patch) | |
tree | 913e23f83d528b5e0c0de2f72bc399cdde882afc /drivers/mtd | |
parent | mtd: rawnand: s3c2410: Error out when ->nrsets < 0 or ->sets == NULL (diff) | |
download | linux-110ab1582670392c1d8b805e701f5b7b7efcb120.tar.xz linux-110ab1582670392c1d8b805e701f5b7b7efcb120.zip |
mtd: rawnand: Remove unused caller_is_module() definition
Commit 260e89a6e0d6 ("mtd: core: tone down suggestion that dev.parent
should be set") removed the only user of caller_is_module() but forgot
to remove the definition itself. Let's remove it now.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/raw/nand_base.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c index ef10beab99f5..e545e03a214e 100644 --- a/drivers/mtd/nand/raw/nand_base.c +++ b/drivers/mtd/nand/raw/nand_base.c @@ -6718,18 +6718,6 @@ err_free_buf: } EXPORT_SYMBOL(nand_scan_tail); -/* - * is_module_text_address() isn't exported, and it's mostly a pointless - * test if this is a module _anyway_ -- they'd have to try _really_ hard - * to call us from in-kernel code if the core NAND support is modular. - */ -#ifdef MODULE -#define caller_is_module() (1) -#else -#define caller_is_module() \ - is_module_text_address((unsigned long)__builtin_return_address(0)) -#endif - /** * nand_scan_with_ids - [NAND Interface] Scan for the NAND device * @mtd: MTD device structure |