Skip to content

Commit

Permalink
[POWERPC] 86xx: mark functions static, other minor cleanups
Browse files Browse the repository at this point in the history
Cleanups as suggested by Stephen Rothwell and Dale Farnsworth, which
incudes marking a bunch of functions static and add a vendor prefix to
the compat node check for uniqueness.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Paul Gortmaker authored and Kumar Gala committed Apr 17, 2008
1 parent 3a2f020 commit 06f35b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/mpc8641_hpcn.dts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

/ {
model = "MPC8641HPCN";
compatible = "mpc86xx";
compatible = "fsl,mpc8641hpcn";
#address-cells = <1>;
#size-cells = <1>;

Expand Down
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/86xx/mpc8610_hpcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static int __init mpc8610_declare_of_platform_devices(void)
}
machine_device_initcall(mpc86xx_hpcd, mpc8610_declare_of_platform_devices);

void __init
static void __init
mpc86xx_hpcd_init_irq(void)
{
struct mpic *mpic1;
Expand Down Expand Up @@ -200,7 +200,7 @@ static int __init mpc86xx_hpcd_probe(void)
return 0;
}

long __init
static long __init
mpc86xx_time_init(void)
{
unsigned int temp;
Expand Down
8 changes: 4 additions & 4 deletions arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void mpc86xx_8259_cascade(unsigned int irq, struct irq_desc *desc)
}
#endif /* CONFIG_PCI */

void __init
static void __init
mpc86xx_hpcn_init_irq(void)
{
struct mpic *mpic1;
Expand Down Expand Up @@ -162,7 +162,7 @@ mpc86xx_hpcn_setup_arch(void)
}


void
static void
mpc86xx_hpcn_show_cpuinfo(struct seq_file *m)
{
struct device_node *root;
Expand Down Expand Up @@ -190,13 +190,13 @@ static int __init mpc86xx_hpcn_probe(void)
{
unsigned long root = of_get_flat_dt_root();

if (of_flat_dt_is_compatible(root, "mpc86xx"))
if (of_flat_dt_is_compatible(root, "fsl,mpc8641hpcn"))
return 1; /* Looks good */

return 0;
}

long __init
static long __init
mpc86xx_time_init(void)
{
unsigned int temp;
Expand Down

0 comments on commit 06f35b4

Please sign in to comment.