Skip to content

Commit

Permalink
[POWERPC] iSeries: fix iseries_veth init
Browse files Browse the repository at this point in the history
Only initialise iseries_veth on legacy iSeries.
Make the init and exit routines static.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Dec 20, 2006
1 parent fd38451 commit 687d18a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions drivers/net/iseries_veth.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
#include <asm/abs_addr.h>
#include <asm/iseries/mf.h>
#include <asm/uaccess.h>

#include <asm/firmware.h>
#include <asm/iseries/hv_lp_config.h>
#include <asm/iseries/hv_types.h>
#include <asm/iseries/hv_lp_event.h>
Expand Down Expand Up @@ -1668,7 +1668,7 @@ static struct vio_driver veth_driver = {
* Module initialization/cleanup
*/

void __exit veth_module_cleanup(void)
static void __exit veth_module_cleanup(void)
{
int i;
struct veth_lpar_connection *cnx;
Expand Down Expand Up @@ -1697,11 +1697,14 @@ void __exit veth_module_cleanup(void)
}
module_exit(veth_module_cleanup);

int __init veth_module_init(void)
static int __init veth_module_init(void)
{
int i;
int rc;

if (!firmware_has_feature(FW_FEATURE_ISERIES))
return -ENODEV;

this_lp = HvLpConfig_getLpIndex_outline();

for (i = 0; i < HVMAXARCHITECTEDLPS; ++i) {
Expand Down

0 comments on commit 687d18a

Please sign in to comment.