Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51d4a1cc authored by Josh Boyer's avatar Josh Boyer Committed by Jeff Garzik
Browse files

ibm_newemac: Fix section mismatch warnings



This patch fixes several section mismatch warnings in the
ibm_newemac driver similar to:

WARNING: vmlinux.o(.devinit.text+0x3a04): Section mismatch in reference from the function emac_probe() to the function .devexit.text:tah_detach()
The function __devinit emac_probe() references
a function __devexit tah_detach().

Signed-off-by: default avatarJosh Boyer <jwboyer@linux.vnet.ibm.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent afd1dee8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2240,7 +2240,7 @@ static int __devinit emac_of_bus_notify(struct notifier_block *nb,
	return 0;
}

static struct notifier_block emac_of_bus_notifier = {
static struct notifier_block emac_of_bus_notifier __devinitdata = {
	.notifier_call = emac_of_bus_notify
};

+2 −2
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ int __devinit mal_register_commac(struct mal_instance *mal,
	return 0;
}

void __devexit mal_unregister_commac(struct mal_instance	*mal,
void mal_unregister_commac(struct mal_instance	*mal,
		struct mal_commac *commac)
{
	unsigned long flags;
+1 −1
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ void rgmii_put_mdio(struct of_device *ofdev, int input)
	mutex_unlock(&dev->lock);
}

void __devexit rgmii_detach(struct of_device *ofdev, int input)
void rgmii_detach(struct of_device *ofdev, int input)
{
	struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev);
	struct rgmii_regs __iomem *p = dev->base;
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ int __devinit tah_attach(struct of_device *ofdev, int channel)
	return 0;
}

void __devexit tah_detach(struct of_device *ofdev, int channel)
void tah_detach(struct of_device *ofdev, int channel)
{
	struct tah_instance *dev = dev_get_drvdata(&ofdev->dev);

+1 −1
Original line number Diff line number Diff line
@@ -189,7 +189,7 @@ void zmii_set_speed(struct of_device *ofdev, int input, int speed)
	mutex_unlock(&dev->lock);
}

void __devexit zmii_detach(struct of_device *ofdev, int input)
void zmii_detach(struct of_device *ofdev, int input)
{
	struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev);