diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2013-02-13 02:21:45 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2013-02-13 02:21:45 +0000 |
commit | 5d56fc6ccd907da03c2ffd167a384b205ca05f75 (patch) | |
tree | 821ea1faba109f697c449f6bd51626a30f4e95f8 /sys/powerpc | |
parent | 58f911cb15fa5b14ff2b5ae906e5abc18d4bc5a6 (diff) | |
download | FreeBSD-src-5d56fc6ccd907da03c2ffd167a384b205ca05f75.zip FreeBSD-src-5d56fc6ccd907da03c2ffd167a384b205ca05f75.tar.gz |
Introduce PLATFORMMETHOD_END and use it.
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/booke/platform_bare.c | 2 | ||||
-rw-r--r-- | sys/powerpc/include/platformvar.h | 3 | ||||
-rw-r--r-- | sys/powerpc/powermac/platform_powermac.c | 2 | ||||
-rw-r--r-- | sys/powerpc/ps3/platform_ps3.c | 2 | ||||
-rw-r--r-- | sys/powerpc/wii/platform_wii.c | 2 |
5 files changed, 6 insertions, 5 deletions
diff --git a/sys/powerpc/booke/platform_bare.c b/sys/powerpc/booke/platform_bare.c index c5739f7..65fb554 100644 --- a/sys/powerpc/booke/platform_bare.c +++ b/sys/powerpc/booke/platform_bare.c @@ -89,7 +89,7 @@ static platform_method_t bare_methods[] = { PLATFORMMETHOD(platform_reset, booke_reset), - { 0, 0 } + PLATFORMMETHOD_END }; static platform_def_t bare_platform = { diff --git a/sys/powerpc/include/platformvar.h b/sys/powerpc/include/platformvar.h index b7c011d..21a1d04 100644 --- a/sys/powerpc/include/platformvar.h +++ b/sys/powerpc/include/platformvar.h @@ -81,7 +81,8 @@ typedef struct platform_kobj *platform_t; typedef struct kobj_class platform_def_t; #define platform_method_t kobj_method_t -#define PLATFORMMETHOD KOBJMETHOD +#define PLATFORMMETHOD KOBJMETHOD +#define PLATFORMMETHOD_END KOBJMETHOD_END #define PLATFORM_DEF(name) DATA_SET(platform_set, name) diff --git a/sys/powerpc/powermac/platform_powermac.c b/sys/powerpc/powermac/platform_powermac.c index 978b33a..52d5c4a 100644 --- a/sys/powerpc/powermac/platform_powermac.c +++ b/sys/powerpc/powermac/platform_powermac.c @@ -77,7 +77,7 @@ static platform_method_t powermac_methods[] = { PLATFORMMETHOD(platform_reset, powermac_reset), - { 0, 0 } + PLATFORMMETHOD_END }; static platform_def_t powermac_platform = { diff --git a/sys/powerpc/ps3/platform_ps3.c b/sys/powerpc/ps3/platform_ps3.c index f06c2cf..61ce873 100644 --- a/sys/powerpc/ps3/platform_ps3.c +++ b/sys/powerpc/ps3/platform_ps3.c @@ -89,7 +89,7 @@ static platform_method_t ps3_methods[] = { PLATFORMMETHOD(platform_reset, ps3_reset), - { 0, 0 } + PLATFORMMETHOD_END }; static platform_def_t ps3_platform = { diff --git a/sys/powerpc/wii/platform_wii.c b/sys/powerpc/wii/platform_wii.c index dcf1fc0..2bb6022 100644 --- a/sys/powerpc/wii/platform_wii.c +++ b/sys/powerpc/wii/platform_wii.c @@ -69,7 +69,7 @@ static platform_method_t wii_methods[] = { PLATFORMMETHOD(platform_timebase_freq, wii_timebase_freq), PLATFORMMETHOD(platform_reset, wii_reset), - { 0, 0 } + PLATFORMMETHOD_END }; static platform_def_t wii_platform = { |