mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
powerpc/nvram_64: Remove unused code
nvram_find_partition() has no user. The call site was removed in the arch/powerpc move, but the function stayed. Remove it. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: linuxppc-dev@ozlabs.org Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
0682d6c104
commit
ae7dd0208f
2 changed files with 0 additions and 26 deletions
|
@ -73,7 +73,6 @@ extern int nvram_write_error_log(char * buff, int length,
|
||||||
extern int nvram_read_error_log(char * buff, int length,
|
extern int nvram_read_error_log(char * buff, int length,
|
||||||
unsigned int * err_type, unsigned int *err_seq);
|
unsigned int * err_type, unsigned int *err_seq);
|
||||||
extern int nvram_clear_error_log(void);
|
extern int nvram_clear_error_log(void);
|
||||||
extern struct nvram_partition *nvram_find_partition(int sig, const char *name);
|
|
||||||
|
|
||||||
extern int pSeries_nvram_init(void);
|
extern int pSeries_nvram_init(void);
|
||||||
|
|
||||||
|
|
|
@ -228,31 +228,6 @@ static unsigned char nvram_checksum(struct nvram_header *p)
|
||||||
return c_sum;
|
return c_sum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Find an nvram partition, sig can be 0 for any
|
|
||||||
* partition or name can be NULL for any name, else
|
|
||||||
* tries to match both
|
|
||||||
*/
|
|
||||||
struct nvram_partition *nvram_find_partition(int sig, const char *name)
|
|
||||||
{
|
|
||||||
struct nvram_partition * part;
|
|
||||||
struct list_head * p;
|
|
||||||
|
|
||||||
list_for_each(p, &nvram_part->partition) {
|
|
||||||
part = list_entry(p, struct nvram_partition, partition);
|
|
||||||
|
|
||||||
if (sig && part->header.signature != sig)
|
|
||||||
continue;
|
|
||||||
if (name && 0 != strncmp(name, part->header.name, 12))
|
|
||||||
continue;
|
|
||||||
return part;
|
|
||||||
}
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(nvram_find_partition);
|
|
||||||
|
|
||||||
|
|
||||||
static int nvram_remove_os_partition(void)
|
static int nvram_remove_os_partition(void)
|
||||||
{
|
{
|
||||||
struct list_head *i;
|
struct list_head *i;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue