/* This routine re-initialises and re-attaches a KS8695 ethernet device.  */
static int ks8695_drv_resume(struct platform_device *pdev)
/* This routine re-initialises and re-attaches a KS8695 ethernet device.  */
static int ks8695_drv_resume(struct platform_device *pdev)
{
	struct net_device *ndev = platform_get_drvdata(pdev);
	struct ks8695_priv *ksp = netdev_priv(ndev);
	if (netif_running(ndev)) {
		ks8695_reset(ksp);
		ks8695_init_net(ksp);
		ks8695_set_multicast(ndev);
		netif_device_attach(ndev);
	}
	ksp->in_suspend = 0;
	return 0;
}