summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/gba
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2017-02-27 22:16:07 +1100
committer Vas Crabb <vas@vastheman.com>2017-02-27 22:57:14 +1100
commit6c23897483a0201dd0b65b450253fd9bf8fb8723 (patch)
tree62a083b4801f63b09bed57ae0c9e8f646aaa3200 /src/devices/bus/gba
parentb07c572f709e95dcd1e2e4b9d4c696e122f67655 (diff)
Self-registering devices prep:
* Make device_creator a variable template and get rid of the ampersands * Remove screen.h and speaker.h from emu.h and add where necessary * Centralise instantiations of screen and speaker finder templates * Add/standardise #include guards in many hearers * Remove many redundant #includes * Order #includesr to help catch headers that can't be #included alone (nw) This changes #include order to be prefix, unit header if applicable then other stuff roughly in order from most dependent to least dependent library. This helps catch headers that don't #include things that they use.
Diffstat (limited to 'src/devices/bus/gba')
-rw-r--r--src/devices/bus/gba/gba_slot.cpp2
-rw-r--r--src/devices/bus/gba/rom.cpp26
2 files changed, 14 insertions, 14 deletions
diff --git a/src/devices/bus/gba/gba_slot.cpp b/src/devices/bus/gba/gba_slot.cpp
index bb9f5b5f992..61dd7cda417 100644
--- a/src/devices/bus/gba/gba_slot.cpp
+++ b/src/devices/bus/gba/gba_slot.cpp
@@ -16,7 +16,7 @@
// GLOBAL VARIABLES
//**************************************************************************
-const device_type GBA_CART_SLOT = &device_creator<gba_cart_slot_device>;
+const device_type GBA_CART_SLOT = device_creator<gba_cart_slot_device>;
//**************************************************************************
// GBA cartridges Interface
diff --git a/src/devices/bus/gba/rom.cpp b/src/devices/bus/gba/rom.cpp
index 7080a60dc01..78875860300 100644
--- a/src/devices/bus/gba/rom.cpp
+++ b/src/devices/bus/gba/rom.cpp
@@ -21,19 +21,19 @@
// gba_rom_device - constructor
//-------------------------------------------------
-const device_type GBA_ROM_STD = &device_creator<gba_rom_device>;
-const device_type GBA_ROM_SRAM = &device_creator<gba_rom_sram_device>;
-const device_type GBA_ROM_DRILLDOZ = &device_creator<gba_rom_drilldoz_device>;
-const device_type GBA_ROM_WARIOTWS = &device_creator<gba_rom_wariotws_device>;
-const device_type GBA_ROM_EEPROM = &device_creator<gba_rom_eeprom_device>;
-const device_type GBA_ROM_YOSHIUG = &device_creator<gba_rom_yoshiug_device>;
-const device_type GBA_ROM_EEPROM64 = &device_creator<gba_rom_eeprom64_device>;
-const device_type GBA_ROM_BOKTAI = &device_creator<gba_rom_boktai_device>;
-const device_type GBA_ROM_FLASH = &device_creator<gba_rom_flash_device>;
-const device_type GBA_ROM_FLASH_RTC = &device_creator<gba_rom_flash_rtc_device>;
-const device_type GBA_ROM_FLASH1M = &device_creator<gba_rom_flash1m_device>;
-const device_type GBA_ROM_FLASH1M_RTC = &device_creator<gba_rom_flash1m_rtc_device>;
-const device_type GBA_ROM_3DMATRIX = &device_creator<gba_rom_3dmatrix_device>;
+const device_type GBA_ROM_STD = device_creator<gba_rom_device>;
+const device_type GBA_ROM_SRAM = device_creator<gba_rom_sram_device>;
+const device_type GBA_ROM_DRILLDOZ = device_creator<gba_rom_drilldoz_device>;
+const device_type GBA_ROM_WARIOTWS = device_creator<gba_rom_wariotws_device>;
+const device_type GBA_ROM_EEPROM = device_creator<gba_rom_eeprom_device>;
+const device_type GBA_ROM_YOSHIUG = device_creator<gba_rom_yoshiug_device>;
+const device_type GBA_ROM_EEPROM64 = device_creator<gba_rom_eeprom64_device>;
+const device_type GBA_ROM_BOKTAI = device_creator<gba_rom_boktai_device>;
+const device_type GBA_ROM_FLASH = device_creator<gba_rom_flash_device>;
+const device_type GBA_ROM_FLASH_RTC = device_creator<gba_rom_flash_rtc_device>;
+const device_type GBA_ROM_FLASH1M = device_creator<gba_rom_flash1m_device>;
+const device_type GBA_ROM_FLASH1M_RTC = device_creator<gba_rom_flash1m_rtc_device>;
+const device_type GBA_ROM_3DMATRIX = device_creator<gba_rom_3dmatrix_device>;
gba_rom_device::gba_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source)