diff options
Diffstat (limited to 'drivers/mtd/nand/r852.c')
-rw-r--r-- | drivers/mtd/nand/r852.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/nand/r852.c b/drivers/mtd/nand/r852.c index bcfc851fe550..5169ca6a66bc 100644 --- a/drivers/mtd/nand/r852.c +++ b/drivers/mtd/nand/r852.c | |||
@@ -64,8 +64,8 @@ static inline void r852_write_reg_dword(struct r852_device *dev, | |||
64 | /* returns pointer to our private structure */ | 64 | /* returns pointer to our private structure */ |
65 | static inline struct r852_device *r852_get_dev(struct mtd_info *mtd) | 65 | static inline struct r852_device *r852_get_dev(struct mtd_info *mtd) |
66 | { | 66 | { |
67 | struct nand_chip *chip = (struct nand_chip *)mtd->priv; | 67 | struct nand_chip *chip = mtd->priv; |
68 | return (struct r852_device *)chip->priv; | 68 | return chip->priv; |
69 | } | 69 | } |
70 | 70 | ||
71 | 71 | ||
@@ -380,7 +380,7 @@ void r852_cmdctl(struct mtd_info *mtd, int dat, unsigned int ctrl) | |||
380 | */ | 380 | */ |
381 | int r852_wait(struct mtd_info *mtd, struct nand_chip *chip) | 381 | int r852_wait(struct mtd_info *mtd, struct nand_chip *chip) |
382 | { | 382 | { |
383 | struct r852_device *dev = (struct r852_device *)chip->priv; | 383 | struct r852_device *dev = chip->priv; |
384 | 384 | ||
385 | unsigned long timeout; | 385 | unsigned long timeout; |
386 | int status; | 386 | int status; |