Commit b4e8b372 authored by Dave Jiang's avatar Dave Jiang Committed by Linus Torvalds

drivers/edac: Lindent i82860

Lindent cleanup of i82860 edac driver
Signed-off-by: default avatarDave Jiang <djiang@mvista.com>
Signed-off-by: default avatarDouglas Thompson <dougthompson@xmission.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 36b8289e
...@@ -54,8 +54,7 @@ struct i82860_error_info { ...@@ -54,8 +54,7 @@ struct i82860_error_info {
static const struct i82860_dev_info i82860_devs[] = { static const struct i82860_dev_info i82860_devs[] = {
[I82860] = { [I82860] = {
.ctl_name = "i82860" .ctl_name = "i82860"},
},
}; };
static struct pci_dev *mci_pdev = NULL; /* init dev: in case that AGP code static struct pci_dev *mci_pdev = NULL; /* init dev: in case that AGP code
...@@ -91,13 +90,13 @@ static void i82860_get_error_info(struct mem_ctl_info *mci, ...@@ -91,13 +90,13 @@ static void i82860_get_error_info(struct mem_ctl_info *mci,
if ((info->errsts ^ info->errsts2) & 0x0003) { if ((info->errsts ^ info->errsts2) & 0x0003) {
pci_read_config_dword(pdev, I82860_EAP, &info->eap); pci_read_config_dword(pdev, I82860_EAP, &info->eap);
pci_read_config_word(pdev, I82860_DERRCTL_STS, pci_read_config_word(pdev, I82860_DERRCTL_STS, &info->derrsyn);
&info->derrsyn);
} }
} }
static int i82860_process_error_info(struct mem_ctl_info *mci, static int i82860_process_error_info(struct mem_ctl_info *mci,
struct i82860_error_info *info, int handle_errors) struct i82860_error_info *info,
int handle_errors)
{ {
int row; int row;
...@@ -209,7 +208,7 @@ static int i82860_probe1(struct pci_dev *pdev, int dev_idx) ...@@ -209,7 +208,7 @@ static int i82860_probe1(struct pci_dev *pdev, int dev_idx)
/* Here we assume that we will never see multiple instances of this /* Here we assume that we will never see multiple instances of this
* type of memory controller. The ID is therefore hardcoded to 0. * type of memory controller. The ID is therefore hardcoded to 0.
*/ */
if (edac_mc_add_mc(mci,0)) { if (edac_mc_add_mc(mci, 0)) {
debugf3("%s(): failed edac_mc_add_mc()\n", __func__); debugf3("%s(): failed edac_mc_add_mc()\n", __func__);
goto fail; goto fail;
} }
...@@ -219,7 +218,7 @@ static int i82860_probe1(struct pci_dev *pdev, int dev_idx) ...@@ -219,7 +218,7 @@ static int i82860_probe1(struct pci_dev *pdev, int dev_idx)
return 0; return 0;
fail: fail:
edac_mc_free(mci); edac_mc_free(mci);
return -ENODEV; return -ENODEV;
} }
...@@ -259,8 +258,7 @@ static void __devexit i82860_remove_one(struct pci_dev *pdev) ...@@ -259,8 +258,7 @@ static void __devexit i82860_remove_one(struct pci_dev *pdev)
static const struct pci_device_id i82860_pci_tbl[] __devinitdata = { static const struct pci_device_id i82860_pci_tbl[] __devinitdata = {
{ {
PCI_VEND_DEV(INTEL, 82860_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCI_VEND_DEV(INTEL, 82860_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
I82860 I82860},
},
{ {
0, 0,
} /* 0 terminated list. */ } /* 0 terminated list. */
...@@ -305,10 +303,10 @@ static int __init i82860_init(void) ...@@ -305,10 +303,10 @@ static int __init i82860_init(void)
return 0; return 0;
fail1: fail1:
pci_unregister_driver(&i82860_driver); pci_unregister_driver(&i82860_driver);
fail0: fail0:
if (mci_pdev != NULL) if (mci_pdev != NULL)
pci_dev_put(mci_pdev); pci_dev_put(mci_pdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment