[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200904021436.44822.arnd@arndb.de>
Date: Thu, 2 Apr 2009 14:36:44 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Harry Ciao <qingtao.cao@...driver.com>
Cc: norsk5@...oo.com, linux-kernel@...r.kernel.org,
bluesmoke-devel@...ts.sourceforge.net, linuxppc-dev@...abs.org
Subject: Re: [v0 PATCH 5/5] EDAC: CPC925 MC platform device setup
On Thursday 02 April 2009, Harry Ciao wrote:
> +#ifdef CONFIG_EDAC
> +#define CPC925_MC_START 0xf8000000
> +#define CPC925_MC_END 0xf8ffffff /* sizeof 16MB */
> +/* Register a platform device for CPC925 memory controller */
> +static int __init maple_cpc925_edac_setup(void)
It's not good to have these encoded as magic numbers.
Can't you find the addresses in the device tree? Maybe it's
even possible to make this an of_platform_driver if you
find a good node to bind to.
Does the driver also work on a G5 Mac, or is it limited
to the maple platform?
Arnd <><
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists