diff options
author | Jon Hunter <jon-hunter@ti.com> | 2012-06-28 14:41:29 -0400 |
---|---|---|
committer | Afzal Mohammed <afzal@ti.com> | 2012-10-15 05:10:35 -0400 |
commit | 757ef79188657087f96f6f12c003b682860fede2 (patch) | |
tree | 3133de5915b93c1da678da94b6b64d9250b312f9 /include | |
parent | 46376884ce0a98c276187a169620a766f0941f08 (diff) |
ARM: OMAP2+: GPMC: Remove unused OneNAND get_freq() platform function
A platform function pointer for getting the frequency of a OneNAND device
was added so that a platform could specify a custom function for returning
the frequency and not just rely on the OneNAND version to determine the
frequency. However, this platform function pointer is not currently being
used and I am not sure if it ever has.
OneNAND devices are not so common these days and as far as I know not being
used with new devices. Therefore, it is most likely that this get_freq()
function pointer will not be used and so remove it.
Given that the get_freq() function pointer is not used, neither is the
clk_dep variable and so all references to it can also be removed.
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Signed-off-by: Afzal Mohammed <afzal@ti.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/platform_data/mtd-onenand-omap2.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/platform_data/mtd-onenand-omap2.h b/include/linux/platform_data/mtd-onenand-omap2.h index 2858667d2e4f..21bb0ff4052e 100644 --- a/include/linux/platform_data/mtd-onenand-omap2.h +++ b/include/linux/platform_data/mtd-onenand-omap2.h | |||
@@ -15,20 +15,12 @@ | |||
15 | #define ONENAND_SYNC_READ (1 << 0) | 15 | #define ONENAND_SYNC_READ (1 << 0) |
16 | #define ONENAND_SYNC_READWRITE (1 << 1) | 16 | #define ONENAND_SYNC_READWRITE (1 << 1) |
17 | 17 | ||
18 | struct onenand_freq_info { | ||
19 | u16 maf_id; | ||
20 | u16 dev_id; | ||
21 | u16 ver_id; | ||
22 | }; | ||
23 | |||
24 | struct omap_onenand_platform_data { | 18 | struct omap_onenand_platform_data { |
25 | int cs; | 19 | int cs; |
26 | int gpio_irq; | 20 | int gpio_irq; |
27 | struct mtd_partition *parts; | 21 | struct mtd_partition *parts; |
28 | int nr_parts; | 22 | int nr_parts; |
29 | int (*onenand_setup)(void __iomem *, int *freq_ptr); | 23 | int (*onenand_setup)(void __iomem *, int *freq_ptr); |
30 | int (*get_freq)(const struct onenand_freq_info *freq_info, | ||
31 | bool *clk_dep); | ||
32 | int dma_channel; | 24 | int dma_channel; |
33 | u8 flags; | 25 | u8 flags; |
34 | u8 regulator_can_sleep; | 26 | u8 regulator_can_sleep; |