Skip to content

Commit

Permalink
sparc64: Apply const or __initdata to vio_device_id[]
Browse files Browse the repository at this point in the history
This mirrors the of_device_id[] changes done in
fd09831 ("sparc: Annotate
of_device_id arrays with const or __initdata.")

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 1, 2008
1 parent ba4962d commit 3d452e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions arch/sparc64/kernel/ds.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* ds.c: Domain Services driver for Logical Domains
*
* Copyright (C) 2007 David S. Miller <davem@davemloft.net>
* Copyright (C) 2007, 2008 David S. Miller <davem@davemloft.net>
*/

#include <linux/kernel.h>
Expand Down Expand Up @@ -1217,7 +1217,7 @@ static int ds_remove(struct vio_dev *vdev)
return 0;
}

static struct vio_device_id ds_match[] = {
static struct vio_device_id __initdata ds_match[] = {
{
.type = "domain-services-port",
},
Expand Down
4 changes: 2 additions & 2 deletions drivers/block/sunvdc.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* sunvdc.c: Sun LDOM Virtual Disk Client.
*
* Copyright (C) 2007 David S. Miller <davem@davemloft.net>
* Copyright (C) 2007, 2008 David S. Miller <davem@davemloft.net>
*/

#include <linux/module.h>
Expand Down Expand Up @@ -834,7 +834,7 @@ static int vdc_port_remove(struct vio_dev *vdev)
return 0;
}

static struct vio_device_id vdc_port_match[] = {
static const struct vio_device_id vdc_port_match[] = {
{
.type = "vdc-port",
},
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/sunvnet.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* sunvnet.c: Sun LDOM Virtual Network Driver.
*
* Copyright (C) 2007 David S. Miller <davem@davemloft.net>
* Copyright (C) 2007, 2008 David S. Miller <davem@davemloft.net>
*/

#include <linux/module.h>
Expand Down Expand Up @@ -1260,7 +1260,7 @@ static int vnet_port_remove(struct vio_dev *vdev)
return 0;
}

static struct vio_device_id vnet_port_match[] = {
static const struct vio_device_id vnet_port_match[] = {
{
.type = "vnet-port",
},
Expand Down

0 comments on commit 3d452e5

Please sign in to comment.