/* This unregisters and releases a KS8695 ethernet device.  */
static int __devexit ks8695_drv_remove(struct platform_device *pdev)
/* This unregisters and releases a KS8695 ethernet device.  */
static int __devexit ks8695_drv_remove(struct platform_device *pdev)
{
	struct net_device *ndev = platform_get_drvdata(pdev);
	struct ks8695_priv *ksp = netdev_priv(ndev);
	platform_set_drvdata(pdev, NULL);
	netif_napi_del(&ksp->napi);
	unregister_netdev(ndev);
	ks8695_release_device(ksp);
	free_netdev(ndev);
	dev_dbg(&pdev->dev, "released and freed device\n");
	return 0;
}