Ahh.. this is my bad. [...] > + err = gpmc_nand_setup((void __iomem *) > + &gpmc_nand_data->gpmc_cs_baseaddr); we just do not need casting here. Apologies for making noise and confusion. Please take this one. -vimal