ibm_emac: fix section mismatch warnings
Fix "Section mismatch" warnings Signed-off-by: Eugene Surovegin <ebs@ebshome.net> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
committed by
Jeff Garzik
parent
bb33808d28
commit
0ec6d95053
@@ -59,8 +59,7 @@ int __init mal_register_commac(struct ibm_ocp_mal *mal,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void __exit mal_unregister_commac(struct ibm_ocp_mal *mal,
|
void mal_unregister_commac(struct ibm_ocp_mal *mal, struct mal_commac *commac)
|
||||||
struct mal_commac *commac)
|
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
local_irq_save(flags);
|
local_irq_save(flags);
|
||||||
|
@@ -223,8 +223,7 @@ void mal_exit(void) __exit;
|
|||||||
|
|
||||||
int mal_register_commac(struct ibm_ocp_mal *mal,
|
int mal_register_commac(struct ibm_ocp_mal *mal,
|
||||||
struct mal_commac *commac) __init;
|
struct mal_commac *commac) __init;
|
||||||
void mal_unregister_commac(struct ibm_ocp_mal *mal,
|
void mal_unregister_commac(struct ibm_ocp_mal *mal, struct mal_commac *commac);
|
||||||
struct mal_commac *commac) __exit;
|
|
||||||
int mal_set_rcbs(struct ibm_ocp_mal *mal, int channel, unsigned long size);
|
int mal_set_rcbs(struct ibm_ocp_mal *mal, int channel, unsigned long size);
|
||||||
|
|
||||||
/* Returns BD ring offset for a particular channel
|
/* Returns BD ring offset for a particular channel
|
||||||
|
@@ -162,7 +162,7 @@ void rgmii_set_speed(struct ocp_device *ocpdev, int input, int speed)
|
|||||||
out_be32(&dev->base->ssr, ssr);
|
out_be32(&dev->base->ssr, ssr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void __exit __rgmii_fini(struct ocp_device *ocpdev, int input)
|
void __rgmii_fini(struct ocp_device *ocpdev, int input)
|
||||||
{
|
{
|
||||||
struct ibm_ocp_rgmii *dev = ocp_get_drvdata(ocpdev);
|
struct ibm_ocp_rgmii *dev = ocp_get_drvdata(ocpdev);
|
||||||
BUG_ON(!dev || dev->users == 0);
|
BUG_ON(!dev || dev->users == 0);
|
||||||
|
@@ -37,7 +37,7 @@ struct ibm_ocp_rgmii {
|
|||||||
#ifdef CONFIG_IBM_EMAC_RGMII
|
#ifdef CONFIG_IBM_EMAC_RGMII
|
||||||
int rgmii_attach(void *emac) __init;
|
int rgmii_attach(void *emac) __init;
|
||||||
|
|
||||||
void __rgmii_fini(struct ocp_device *ocpdev, int input) __exit;
|
void __rgmii_fini(struct ocp_device *ocpdev, int input);
|
||||||
static inline void rgmii_fini(struct ocp_device *ocpdev, int input)
|
static inline void rgmii_fini(struct ocp_device *ocpdev, int input)
|
||||||
{
|
{
|
||||||
if (ocpdev)
|
if (ocpdev)
|
||||||
|
@@ -63,7 +63,7 @@ int __init tah_attach(void *emac)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void __exit __tah_fini(struct ocp_device *ocpdev)
|
void __tah_fini(struct ocp_device *ocpdev)
|
||||||
{
|
{
|
||||||
struct tah_regs *p = ocp_get_drvdata(ocpdev);
|
struct tah_regs *p = ocp_get_drvdata(ocpdev);
|
||||||
BUG_ON(!p);
|
BUG_ON(!p);
|
||||||
|
@@ -55,7 +55,7 @@ struct tah_regs {
|
|||||||
#ifdef CONFIG_IBM_EMAC_TAH
|
#ifdef CONFIG_IBM_EMAC_TAH
|
||||||
int tah_attach(void *emac) __init;
|
int tah_attach(void *emac) __init;
|
||||||
|
|
||||||
void __tah_fini(struct ocp_device *ocpdev) __exit;
|
void __tah_fini(struct ocp_device *ocpdev);
|
||||||
static inline void tah_fini(struct ocp_device *ocpdev)
|
static inline void tah_fini(struct ocp_device *ocpdev)
|
||||||
{
|
{
|
||||||
if (ocpdev)
|
if (ocpdev)
|
||||||
|
@@ -215,7 +215,7 @@ void __zmii_set_speed(struct ocp_device *ocpdev, int input, int speed)
|
|||||||
out_be32(&dev->base->ssr, ssr);
|
out_be32(&dev->base->ssr, ssr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void __exit __zmii_fini(struct ocp_device *ocpdev, int input)
|
void __zmii_fini(struct ocp_device *ocpdev, int input)
|
||||||
{
|
{
|
||||||
struct ibm_ocp_zmii *dev = ocp_get_drvdata(ocpdev);
|
struct ibm_ocp_zmii *dev = ocp_get_drvdata(ocpdev);
|
||||||
BUG_ON(!dev || dev->users == 0);
|
BUG_ON(!dev || dev->users == 0);
|
||||||
|
@@ -40,7 +40,7 @@ struct ibm_ocp_zmii {
|
|||||||
#ifdef CONFIG_IBM_EMAC_ZMII
|
#ifdef CONFIG_IBM_EMAC_ZMII
|
||||||
int zmii_attach(void *emac) __init;
|
int zmii_attach(void *emac) __init;
|
||||||
|
|
||||||
void __zmii_fini(struct ocp_device *ocpdev, int input) __exit;
|
void __zmii_fini(struct ocp_device *ocpdev, int input);
|
||||||
static inline void zmii_fini(struct ocp_device *ocpdev, int input)
|
static inline void zmii_fini(struct ocp_device *ocpdev, int input)
|
||||||
{
|
{
|
||||||
if (ocpdev)
|
if (ocpdev)
|
||||||
|
Reference in New Issue
Block a user