diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2013-06-18 09:33:40 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-06-18 22:46:46 +0400 |
commit | 7b5d6043de31290de98e9232cbd9a07968aef5bd (patch) | |
tree | 228e02ecbbe6b22041b8f6a5e7eba43bb852f5f9 /drivers/ssb/ssb_private.h | |
parent | e861ef523cd91270d108edc394e648b1f9e6fbd5 (diff) | |
download | linux-7b5d6043de31290de98e9232cbd9a07968aef5bd.tar.xz |
ssb: register serial flash as platform device
This allows writing MTD driver working as a platform driver. In
platform_data it will receive struct ssb_sflash, which contains all
important data about flash (window, size).
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/ssb/ssb_private.h')
-rw-r--r-- | drivers/ssb/ssb_private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ssb/ssb_private.h b/drivers/ssb/ssb_private.h index 4671f17f09af..eb507a50a564 100644 --- a/drivers/ssb/ssb_private.h +++ b/drivers/ssb/ssb_private.h @@ -243,6 +243,10 @@ static inline int ssb_sflash_init(struct ssb_chipcommon *cc) extern struct platform_device ssb_pflash_dev; #endif +#ifdef CONFIG_SSB_SFLASH +extern struct platform_device ssb_sflash_dev; +#endif + #ifdef CONFIG_SSB_DRIVER_EXTIF extern u32 ssb_extif_watchdog_timer_set_wdt(struct bcm47xx_wdt *wdt, u32 ticks); extern u32 ssb_extif_watchdog_timer_set_ms(struct bcm47xx_wdt *wdt, u32 ms); |