Commit fd6e7d2d authored by s.hauer@pengutronix.de's avatar s.hauer@pengutronix.de Committed by Paul Mackerras

[PATCH] Clean up usage of boot_dev

dev_t boot_dev is declared in arch/powerpc/kernel/setup_32.c
and in arch/powerpc/kernel/setup_64.c but not used in these files.
It is only used in arch/powerpc/platforms/powermac/setup.c, so make
it static in this file.
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 99a565ba
...@@ -63,10 +63,6 @@ unsigned int DMA_MODE_WRITE; ...@@ -63,10 +63,6 @@ unsigned int DMA_MODE_WRITE;
int have_of = 1; int have_of = 1;
#ifdef CONFIG_PPC_MULTIPLATFORM
dev_t boot_dev;
#endif /* CONFIG_PPC_MULTIPLATFORM */
#ifdef CONFIG_VGA_CONSOLE #ifdef CONFIG_VGA_CONSOLE
unsigned long vgacon_remap_base; unsigned long vgacon_remap_base;
#endif #endif
......
...@@ -71,7 +71,6 @@ ...@@ -71,7 +71,6 @@
int have_of = 1; int have_of = 1;
int boot_cpuid = 0; int boot_cpuid = 0;
dev_t boot_dev;
u64 ppc64_pft_size; u64 ppc64_pft_size;
/* Pick defaults since we might want to patch instructions /* Pick defaults since we might want to patch instructions
......
...@@ -361,7 +361,7 @@ char *bootdevice; ...@@ -361,7 +361,7 @@ char *bootdevice;
void *boot_host; void *boot_host;
int boot_target; int boot_target;
int boot_part; int boot_part;
extern dev_t boot_dev; static dev_t boot_dev;
#ifdef CONFIG_SCSI #ifdef CONFIG_SCSI
void __init note_scsi_host(struct device_node *node, void *host) void __init note_scsi_host(struct device_node *node, void *host)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment