Re: [v2 PATCH 1/3] EDAC: Add CPC925 Memory Controller driver

From: Andrew Morton
Date: Wed Apr 15 2009 - 18:32:22 EST


On Mon, 13 Apr 2009 14:05:14 +0800
Harry Ciao <qingtao.cao@xxxxxxxxxxxxx> wrote:

> Introduce IBM CPC925 EDAC driver, which makes use of ECC, CPU and
> HyperTransport Link error detections and corrections on the IBM
> CPC925 Bridge and Memory Controller.

A wee cleanup:

--- a/drivers/edac/cpc925_edac.c~edac-add-cpc925-memory-controller-driver-cleanup
+++ a/drivers/edac/cpc925_edac.c
@@ -291,9 +291,6 @@ struct cpc925_dev_info {
void (*check)(struct edac_device_ctl_info *edac_dev);
};

-
-static int edac_mc_idx;
-
/* Get total memory size from Open Firmware DTB */
static void get_total_mem(struct cpc925_mc_pdata *pdata)
{
@@ -866,6 +863,7 @@ static int cpc925_mc_get_channels(void _

static int __devinit cpc925_probe(struct platform_device *pdev)
{
+ static int edac_mc_idx;
struct mem_ctl_info *mci;
void __iomem *vbase;
struct cpc925_mc_pdata *pdata;
_

--
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/