diff options
Diffstat (limited to 'drkaiser.c')
-rw-r--r-- | drkaiser.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -47,7 +47,7 @@ int drkaiser_init(void) drkaiser_pcidev); /* Write magic register to enable flash write. */ - pci_write_word(pcidev_dev, PCI_MAGIC_DRKAISER_ADDR, + rpci_write_word(pcidev_dev, PCI_MAGIC_DRKAISER_ADDR, PCI_MAGIC_DRKAISER_VALUE); /* Map 128KB flash memory window. */ @@ -61,8 +61,7 @@ int drkaiser_init(void) int drkaiser_shutdown(void) { - /* Write protect the flash again. */ - pci_write_word(pcidev_dev, PCI_MAGIC_DRKAISER_ADDR, 0); + /* Flash write is disabled automatically by PCI restore. */ pci_cleanup(pacc); release_io_perms(); return 0; |