mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
mtd: m25p80: remove 'disabled' device check
It seems like the following commit was never necessary
commit 5f94913795
Author: Shaohui Xie <[email protected]>
Date: Fri Oct 14 15:49:00 2011 +0800
mtd: m25p80: don't probe device which has status of 'disabled'
because it duplicates the code in of_platform_device_create_pdata()
which ensures that 'disabled' nodes are never instantiated.
Also, drop the __maybe_unused.
Signed-off-by: Brian Norris <[email protected]>
Reviewed-by: Sourav Poddar <[email protected]>
Reviewed-by: Grant Likely <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: <[email protected]>
This commit is contained in:
parent
ddba7c5ad7
commit
dc525ff470
1 changed files with 1 additions and 6 deletions
|
|
@ -935,12 +935,7 @@ static int m25p_probe(struct spi_device *spi)
|
|||
struct flash_info *info;
|
||||
unsigned i;
|
||||
struct mtd_part_parser_data ppdata;
|
||||
struct device_node __maybe_unused *np = spi->dev.of_node;
|
||||
|
||||
#ifdef CONFIG_MTD_OF_PARTS
|
||||
if (!of_device_is_available(np))
|
||||
return -ENODEV;
|
||||
#endif
|
||||
struct device_node *np = spi->dev.of_node;
|
||||
|
||||
/* Platform data helps sort out which chip type we have, as
|
||||
* well as how this board partitions it. If we don't have
|
||||
|
|
|
|||
Loading…
Reference in a new issue