Introduce PLATFORMMETHOD_END and use it.
This commit is contained in:
parent
58f911cb15
commit
5d56fc6ccd
@ -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 = {
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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 = {
|
||||
|
@ -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 = {
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user