|
@@ -1274,7 +1274,7 @@ ks8695_open(struct net_device *ndev)
|
|
* This initialises the LAN switch in the KS8695 to a known-good
|
|
* This initialises the LAN switch in the KS8695 to a known-good
|
|
* set of defaults.
|
|
* set of defaults.
|
|
*/
|
|
*/
|
|
-static void __devinit
|
|
|
|
|
|
+static void
|
|
ks8695_init_switch(struct ks8695_priv *ksp)
|
|
ks8695_init_switch(struct ks8695_priv *ksp)
|
|
{
|
|
{
|
|
u32 ctrl;
|
|
u32 ctrl;
|
|
@@ -1302,7 +1302,7 @@ ks8695_init_switch(struct ks8695_priv *ksp)
|
|
* This initialises a KS8695's WAN phy to sensible values for
|
|
* This initialises a KS8695's WAN phy to sensible values for
|
|
* autonegotiation etc.
|
|
* autonegotiation etc.
|
|
*/
|
|
*/
|
|
-static void __devinit
|
|
|
|
|
|
+static void
|
|
ks8695_init_wan_phy(struct ks8695_priv *ksp)
|
|
ks8695_init_wan_phy(struct ks8695_priv *ksp)
|
|
{
|
|
{
|
|
u32 ctrl;
|
|
u32 ctrl;
|
|
@@ -1346,7 +1346,7 @@ static const struct net_device_ops ks8695_netdev_ops = {
|
|
* wan ports, and an IORESOURCE_IRQ for the link IRQ for the wan
|
|
* wan ports, and an IORESOURCE_IRQ for the link IRQ for the wan
|
|
* port.
|
|
* port.
|
|
*/
|
|
*/
|
|
-static int __devinit
|
|
|
|
|
|
+static int
|
|
ks8695_probe(struct platform_device *pdev)
|
|
ks8695_probe(struct platform_device *pdev)
|
|
{
|
|
{
|
|
struct ks8695_priv *ksp;
|
|
struct ks8695_priv *ksp;
|
|
@@ -1594,7 +1594,7 @@ ks8695_drv_resume(struct platform_device *pdev)
|
|
*
|
|
*
|
|
* This unregisters and releases a KS8695 ethernet device.
|
|
* This unregisters and releases a KS8695 ethernet device.
|
|
*/
|
|
*/
|
|
-static int __devexit
|
|
|
|
|
|
+static int
|
|
ks8695_drv_remove(struct platform_device *pdev)
|
|
ks8695_drv_remove(struct platform_device *pdev)
|
|
{
|
|
{
|
|
struct net_device *ndev = platform_get_drvdata(pdev);
|
|
struct net_device *ndev = platform_get_drvdata(pdev);
|
|
@@ -1617,7 +1617,7 @@ static struct platform_driver ks8695_driver = {
|
|
.owner = THIS_MODULE,
|
|
.owner = THIS_MODULE,
|
|
},
|
|
},
|
|
.probe = ks8695_probe,
|
|
.probe = ks8695_probe,
|
|
- .remove = __devexit_p(ks8695_drv_remove),
|
|
|
|
|
|
+ .remove = ks8695_drv_remove,
|
|
.suspend = ks8695_drv_suspend,
|
|
.suspend = ks8695_drv_suspend,
|
|
.resume = ks8695_drv_resume,
|
|
.resume = ks8695_drv_resume,
|
|
};
|
|
};
|