mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 12:52:29 -04:00
MIPS: TXX9: Remove tx4938_spi_init() and txx9_spi_init()
The last user of tx4938_spi_init() was removed in commit
21d638ef94 ("MIPS: TXX9: Remove rbtx4938 board support").
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
committed by
Thomas Bogendoerfer
parent
8121880ddc
commit
1235933df8
@@ -45,7 +45,6 @@ extern int (*txx9_irq_dispatch)(int pending);
|
||||
const char *prom_getenv(const char *name);
|
||||
void txx9_wdt_init(unsigned long base);
|
||||
void txx9_wdt_now(unsigned long base);
|
||||
void txx9_spi_init(int busid, unsigned long base, int irq);
|
||||
void txx9_ethaddr_init(unsigned int id, unsigned char *ethaddr);
|
||||
void txx9_sio_init(unsigned long baseaddr, int irq,
|
||||
unsigned int line, unsigned int sclk, int nocts);
|
||||
|
||||
@@ -281,7 +281,6 @@ void tx4938_wdt_init(void);
|
||||
void tx4938_setup(void);
|
||||
void tx4938_time_init(unsigned int tmrnr);
|
||||
void tx4938_sio_init(unsigned int sclk, unsigned int cts_mask);
|
||||
void tx4938_spi_init(int busid);
|
||||
void tx4938_ethaddr_init(unsigned char *addr0, unsigned char *addr1);
|
||||
int tx4938_report_pciclk(void);
|
||||
void tx4938_report_pci1clk(void);
|
||||
|
||||
@@ -341,23 +341,6 @@ void txx9_wdt_now(unsigned long base)
|
||||
&tmrptr->tcr);
|
||||
}
|
||||
|
||||
/* SPI support */
|
||||
void __init txx9_spi_init(int busid, unsigned long base, int irq)
|
||||
{
|
||||
struct resource res[] = {
|
||||
{
|
||||
.start = base,
|
||||
.end = base + 0x20 - 1,
|
||||
.flags = IORESOURCE_MEM,
|
||||
}, {
|
||||
.start = irq,
|
||||
.flags = IORESOURCE_IRQ,
|
||||
},
|
||||
};
|
||||
platform_device_register_simple("spi_txx9", busid,
|
||||
res, ARRAY_SIZE(res));
|
||||
}
|
||||
|
||||
void __init txx9_ethaddr_init(unsigned int id, unsigned char *ethaddr)
|
||||
{
|
||||
struct platform_device *pdev =
|
||||
|
||||
@@ -301,12 +301,6 @@ void __init tx4938_sio_init(unsigned int sclk, unsigned int cts_mask)
|
||||
}
|
||||
}
|
||||
|
||||
void __init tx4938_spi_init(int busid)
|
||||
{
|
||||
txx9_spi_init(busid, TX4938_SPI_REG & 0xfffffffffULL,
|
||||
TXX9_IRQ_BASE + TX4938_IR_SPI);
|
||||
}
|
||||
|
||||
void __init tx4938_ethaddr_init(unsigned char *addr0, unsigned char *addr1)
|
||||
{
|
||||
u64 pcfg = __raw_readq(&tx4938_ccfgptr->pcfg);
|
||||
|
||||
Reference in New Issue
Block a user