Skip to content

Commit 667f390

Browse files
Marc ZyngierRussell King
authored andcommitted
ARM: 6910/1: MTD: physmap: let set_vpp() pass a platform_device instead of a map_info
The set_vpp() method provided by physmap passes a map_info back to the platform code, which has little relevance as far as the platform is concerned (this parameter is completely unused). Instead, pass the platform_device, which can be used in the pismo driver to retrieve some important information in a nicer way, instead of the hack that was in place. The empty set_vpp function in board-at572d940hf_ek.c is left untouched, as the board/SoC is scheduled for removal. Cc: Andrew Victor <linux@maxim.org.za> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Philipp Zabel <philipp.zabel@gmail.com> Cc: Eric Miao <eric.y.miao@gmail.com> Cc: Ben Dooks <ben-linux@fluff.org> Acked-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Acked-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent adf0040 commit 667f390

13 files changed

Lines changed: 29 additions & 53 deletions

File tree

‎arch/arm/mach-integrator/integrator_ap.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ static void ap_flash_exit(struct platform_device *dev)
263263
}
264264
}
265265

266-
static void ap_flash_set_vpp(struct map_info *map, int on)
266+
static void ap_flash_set_vpp(struct platform_device *pdev, int on)
267267
{
268268
void __iomem *reg = on ? SC_CTRLS : SC_CTRLC;
269269

‎arch/arm/mach-integrator/integrator_cp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static void intcp_flash_exit(struct platform_device *dev)
259259
writel(val, INTCP_VA_CTRL_BASE + INTCP_FLASHPROG);
260260
}
261261

262-
static void intcp_flash_set_vpp(struct map_info *map, int on)
262+
static void intcp_flash_set_vpp(struct platform_device *pdev, int on)
263263
{
264264
u32 val;
265265

‎arch/arm/mach-omap1/flash.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <plat/tc.h>
1414
#include <plat/flash.h>
1515

16-
void omap1_set_vpp(struct map_info *map, int enable)
16+
void omap1_set_vpp(struct platform_device *pdev, int enable)
1717
{
1818
static int count;
1919
u32 l;

‎arch/arm/mach-pxa/hx4700.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ static struct platform_device bq24022 = {
735735
* StrataFlash
736736
*/
737737

738-
static void hx4700_set_vpp(struct map_info *map, int vpp)
738+
static void hx4700_set_vpp(struct platform_device *pdev, int vpp)
739739
{
740740
gpio_set_value(GPIO91_HX4700_FLASH_VPEN, vpp);
741741
}

‎arch/arm/mach-pxa/magician.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ static struct pxaohci_platform_data magician_ohci_info = {
662662
* StrataFlash
663663
*/
664664

665-
static void magician_set_vpp(struct map_info *map, int vpp)
665+
static void magician_set_vpp(struct platform_device *pdev, int vpp)
666666
{
667667
gpio_set_value(EGPIO_MAGICIAN_FLASH_VPP, vpp);
668668
}

‎arch/arm/mach-realview/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void __init realview_adjust_zones(unsigned long *size, unsigned long *hole)
7777

7878
#define REALVIEW_FLASHCTRL (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_FLASH_OFFSET)
7979

80-
static void realview_flash_set_vpp(struct map_info *map, int on)
80+
static void realview_flash_set_vpp(struct platform_device *pdev, int on)
8181
{
8282
u32 val;
8383

‎arch/arm/mach-s3c2410/nor-simtec.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#include "nor-simtec.h"
3434

35-
static void simtec_nor_vpp(struct map_info *map, int vpp)
35+
static void simtec_nor_vpp(struct platform_device *pdev, int vpp)
3636
{
3737
unsigned int val;
3838
unsigned long flags;

‎arch/arm/mach-versatile/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void __init versatile_map_io(void)
190190

191191
#define VERSATILE_FLASHCTRL (__io_address(VERSATILE_SYS_BASE) + VERSATILE_SYS_FLASH_OFFSET)
192192

193-
static void versatile_flash_set_vpp(struct map_info *map, int on)
193+
static void versatile_flash_set_vpp(struct platform_device *pdev, int on)
194194
{
195195
u32 val;
196196

‎arch/arm/mach-vexpress/v2m.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static struct platform_device v2m_usb_device = {
206206
.dev.platform_data = &v2m_usb_config,
207207
};
208208

209-
static void v2m_flash_set_vpp(struct map_info *map, int on)
209+
static void v2m_flash_set_vpp(struct platform_device *pdev, int on)
210210
{
211211
writel(on != 0, MMIO_P2V(V2M_SYS_FLASH));
212212
}

‎arch/arm/plat-omap/include/plat/flash.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111

1212
#include <linux/mtd/map.h>
1313

14-
extern void omap1_set_vpp(struct map_info *map, int enable);
14+
extern void omap1_set_vpp(struct platform_device *pdev, int enable);
1515

1616
#endif

0 commit comments

Comments
 (0)