[PATCH 2.6] pcmcia/ti113x.h don't call functions twice

Daniel Ritz daniel.ritz at gmx.ch
Mon Aug 4 23:46:23 BST 2003


hi

this patches removes unneccessary calls to yenta_init()/ti_set_zv() in
ti1250_init() as the called ti113x_init() already does this..

rgds
-daniel


--- 1.12/drivers/pcmcia/ti113x.h	Mon Jul 14 16:41:34 2003
+++ edited/drivers/pcmcia/ti113x.h	Mon Aug  4 19:28:20 2003
@@ -325,9 +325,7 @@
 static int ti1250_init(struct pcmcia_socket *sock)
 {
 	struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket);
-	yenta_init(sock);
 	ti113x_init(sock);
-	ti_set_zv(sock);
 	ti_irqmux(socket) = config_readl(socket, TI122X_IRQMUX);
 	ti_irqmux(socket) = (ti_irqmux(socket) & ~0x0f) | 0x02; /* route INTA */
 	if (!(ti_sysctl(socket) & TI122X_SCR_INTRTIE))




More information about the linux-pcmcia mailing list