aboutsummaryrefslogtreecommitdiffstats
path: root/nicrealtek.c
diff options
context:
space:
mode:
Diffstat (limited to 'nicrealtek.c')
-rw-r--r--nicrealtek.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/nicrealtek.c b/nicrealtek.c
index 81d305ba..b8125f41 100644
--- a/nicrealtek.c
+++ b/nicrealtek.c
@@ -79,6 +79,13 @@ static uint8_t nicrealtek_chip_readb(const struct flashctx *flash, const chipadd
return val;
}
+static int nicrealtek_shutdown(void *data)
+{
+ /* FIXME: We forgot to disable software access again. */
+ free(data);
+ return 0;
+}
+
static const struct par_master par_master_nicrealtek = {
.chip_readb = nicrealtek_chip_readb,
.chip_readw = fallback_chip_readw,
@@ -90,13 +97,6 @@ static const struct par_master par_master_nicrealtek = {
.chip_writen = fallback_chip_writen,
};
-static int nicrealtek_shutdown(void *data)
-{
- /* FIXME: We forgot to disable software access again. */
- free(data);
- return 0;
-}
-
static int nicrealtek_init(void)
{
struct pci_dev *dev = NULL;