[MTD] Sparse fixes
Fix sparse errors due to lack of address-space markers Updated header comments Small re-format of initialiser Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
4945079584
commit
fdf2fd5274
@ -1,6 +1,7 @@
|
|||||||
/* linux/drivers/mtd/nand/s3c2410.c
|
/* linux/drivers/mtd/nand/s3c2410.c
|
||||||
*
|
*
|
||||||
* Copyright (c) 2004 Simtec Electronics
|
* Copyright (c) 2004 Simtec Electronics
|
||||||
|
* http://www.simtec.co.uk/products/SWLINUX/
|
||||||
* Ben Dooks <ben@simtec.co.uk>
|
* Ben Dooks <ben@simtec.co.uk>
|
||||||
*
|
*
|
||||||
* Samsung S3C2410 NAND driver
|
* Samsung S3C2410 NAND driver
|
||||||
@ -10,8 +11,9 @@
|
|||||||
* 23-Sep-2004 BJD Mulitple device support
|
* 23-Sep-2004 BJD Mulitple device support
|
||||||
* 28-Sep-2004 BJD Fixed ECC placement for Hardware mode
|
* 28-Sep-2004 BJD Fixed ECC placement for Hardware mode
|
||||||
* 12-Oct-2004 BJD Fixed errors in use of platform data
|
* 12-Oct-2004 BJD Fixed errors in use of platform data
|
||||||
|
* 18-Feb-2004 BJD Fix sparse errors
|
||||||
*
|
*
|
||||||
* $Id: s3c2410.c,v 1.7 2005/01/05 18:05:14 dwmw2 Exp $
|
* $Id: s3c2410.c,v 1.8 2005/02/18 14:46:12 bjd Exp $
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -99,7 +101,7 @@ struct s3c2410_nand_info {
|
|||||||
struct device *device;
|
struct device *device;
|
||||||
struct resource *area;
|
struct resource *area;
|
||||||
struct clk *clk;
|
struct clk *clk;
|
||||||
void *regs;
|
void __iomem *regs;
|
||||||
int mtd_count;
|
int mtd_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -523,8 +525,8 @@ static void s3c2410_nand_init_chip(struct s3c2410_nand_info *info,
|
|||||||
{
|
{
|
||||||
struct nand_chip *chip = &nmtd->chip;
|
struct nand_chip *chip = &nmtd->chip;
|
||||||
|
|
||||||
chip->IO_ADDR_R = (char *)info->regs + S3C2410_NFDATA;
|
chip->IO_ADDR_R = info->regs + S3C2410_NFDATA;
|
||||||
chip->IO_ADDR_W = (char *)info->regs + S3C2410_NFDATA;
|
chip->IO_ADDR_W = info->regs + S3C2410_NFDATA;
|
||||||
chip->hwcontrol = s3c2410_nand_hwcontrol;
|
chip->hwcontrol = s3c2410_nand_hwcontrol;
|
||||||
chip->dev_ready = s3c2410_nand_devready;
|
chip->dev_ready = s3c2410_nand_devready;
|
||||||
chip->cmdfunc = s3c2410_nand_command;
|
chip->cmdfunc = s3c2410_nand_command;
|
||||||
|
Loading…
Reference in New Issue
Block a user