[PATCH] pcmcia: remove unneeded forward declarations

Also remove a couple of unneeded typecasts.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>

authored by Andrew Morton and committed by Dominik Brodowski 80a55e92 a0aab143

+2 -6
+2 -6
drivers/pcmcia/ds.c
··· 298 298 * 299 299 * Registers a PCMCIA driver with the PCMCIA bus core. 300 300 */ 301 - static int pcmcia_device_probe(struct device *dev); 302 - static int pcmcia_device_remove(struct device * dev); 303 - 304 301 int pcmcia_register_driver(struct pcmcia_driver *driver) 305 302 { 306 303 if (!driver) ··· 397 400 * call which will then check whether there are two 398 401 * pseudo devices, and if not, add the second one. 399 402 */ 400 - did = (struct pcmcia_device_id *) p_dev->dev.driver_data; 403 + did = p_dev->dev.driver_data; 401 404 if (did && (did->match_flags & PCMCIA_DEV_ID_MATCH_DEVICE_NO) && 402 405 (p_dev->socket->device_count == 1) && (p_dev->device_no == 0)) 403 406 pcmcia_add_pseudo_device(p_dev->socket); ··· 445 448 return; 446 449 } 447 450 448 - 449 451 static int pcmcia_device_remove(struct device * dev) 450 452 { 451 453 struct pcmcia_device *p_dev; ··· 459 463 * pseudo multi-function card, we need to unbind 460 464 * all devices 461 465 */ 462 - did = (struct pcmcia_device_id *) p_dev->dev.driver_data; 466 + did = p_dev->dev.driver_data; 463 467 if (did && (did->match_flags & PCMCIA_DEV_ID_MATCH_DEVICE_NO) && 464 468 (p_dev->socket->device_count != 0) && 465 469 (p_dev->device_no == 0))