Re: [PATCH 6/7] AMD Geode GX/LX support

From: Alan Cox
Date: Mon Oct 03 2005 - 13:40:38 EST


On Llu, 2005-10-03 at 12:02 -0600, Jordan Crouse wrote:
> + u32 val;
> +
> + val = *((u32 *) (geode_rng_base + GEODE_RNG_DATA_REG));
> + return val;
> +}
> +
> +static unsigned int geode_data_present(void) {
> + u32 val;
> +
> + val = *((u32 *) (geode_rng_base + GEODE_RNG_STATUS_REG));
> + return val;
> +}

ioremap space is not directly for reference evenif it happens to work
currently for this case - use readl

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/