Commit d289f864 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

cxgb4vf: remove __dev* attributes

CONFIG_HOTPLUG is going away as an option.  As result the __dev*
markings will be going away.

Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.
Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Cc: Casey Leedom <leedom@chelsio.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 91744948
...@@ -2023,7 +2023,7 @@ static struct cxgb4vf_debugfs_entry debugfs_files[] = { ...@@ -2023,7 +2023,7 @@ static struct cxgb4vf_debugfs_entry debugfs_files[] = {
* Set up out /sys/kernel/debug/cxgb4vf sub-nodes. We assume that the * Set up out /sys/kernel/debug/cxgb4vf sub-nodes. We assume that the
* directory (debugfs_root) has already been set up. * directory (debugfs_root) has already been set up.
*/ */
static int __devinit setup_debugfs(struct adapter *adapter) static int setup_debugfs(struct adapter *adapter)
{ {
int i; int i;
...@@ -2064,7 +2064,7 @@ static void cleanup_debugfs(struct adapter *adapter) ...@@ -2064,7 +2064,7 @@ static void cleanup_debugfs(struct adapter *adapter)
* adapter parameters we're going to be using and initialize basic adapter * adapter parameters we're going to be using and initialize basic adapter
* hardware support. * hardware support.
*/ */
static int __devinit adap_init0(struct adapter *adapter) static int adap_init0(struct adapter *adapter)
{ {
struct vf_resources *vfres = &adapter->params.vfres; struct vf_resources *vfres = &adapter->params.vfres;
struct sge_params *sge_params = &adapter->params.sge; struct sge_params *sge_params = &adapter->params.sge;
...@@ -2266,7 +2266,7 @@ static inline void init_rspq(struct sge_rspq *rspq, u8 timer_idx, ...@@ -2266,7 +2266,7 @@ static inline void init_rspq(struct sge_rspq *rspq, u8 timer_idx,
* be modified by the admin via ethtool and cxgbtool prior to the adapter * be modified by the admin via ethtool and cxgbtool prior to the adapter
* being brought up for the first time. * being brought up for the first time.
*/ */
static void __devinit cfg_queues(struct adapter *adapter) static void cfg_queues(struct adapter *adapter)
{ {
struct sge *s = &adapter->sge; struct sge *s = &adapter->sge;
int q10g, n10g, qidx, pidx, qs; int q10g, n10g, qidx, pidx, qs;
...@@ -2361,7 +2361,7 @@ static void __devinit cfg_queues(struct adapter *adapter) ...@@ -2361,7 +2361,7 @@ static void __devinit cfg_queues(struct adapter *adapter)
* Reduce the number of Ethernet queues across all ports to at most n. * Reduce the number of Ethernet queues across all ports to at most n.
* n provides at least one queue per port. * n provides at least one queue per port.
*/ */
static void __devinit reduce_ethqs(struct adapter *adapter, int n) static void reduce_ethqs(struct adapter *adapter, int n)
{ {
int i; int i;
struct port_info *pi; struct port_info *pi;
...@@ -2400,7 +2400,7 @@ static void __devinit reduce_ethqs(struct adapter *adapter, int n) ...@@ -2400,7 +2400,7 @@ static void __devinit reduce_ethqs(struct adapter *adapter, int n)
* for our "extras". Note that this process may lower the maximum number of * for our "extras". Note that this process may lower the maximum number of
* allowed Queue Sets ... * allowed Queue Sets ...
*/ */
static int __devinit enable_msix(struct adapter *adapter) static int enable_msix(struct adapter *adapter)
{ {
int i, err, want, need; int i, err, want, need;
struct msix_entry entries[MSIX_ENTRIES]; struct msix_entry entries[MSIX_ENTRIES];
...@@ -2462,7 +2462,7 @@ static const struct net_device_ops cxgb4vf_netdev_ops = { ...@@ -2462,7 +2462,7 @@ static const struct net_device_ops cxgb4vf_netdev_ops = {
* state needed to manage the device. This routine is called "init_one" in * state needed to manage the device. This routine is called "init_one" in
* the PF Driver ... * the PF Driver ...
*/ */
static int __devinit cxgb4vf_pci_probe(struct pci_dev *pdev, static int cxgb4vf_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *ent) const struct pci_device_id *ent)
{ {
static int version_printed; static int version_printed;
...@@ -2769,7 +2769,7 @@ static int __devinit cxgb4vf_pci_probe(struct pci_dev *pdev, ...@@ -2769,7 +2769,7 @@ static int __devinit cxgb4vf_pci_probe(struct pci_dev *pdev,
* "probe" routine and quiesce the device (disable interrupts, etc.). (Note * "probe" routine and quiesce the device (disable interrupts, etc.). (Note
* that this is called "remove_one" in the PF Driver.) * that this is called "remove_one" in the PF Driver.)
*/ */
static void __devexit cxgb4vf_pci_remove(struct pci_dev *pdev) static void cxgb4vf_pci_remove(struct pci_dev *pdev)
{ {
struct adapter *adapter = pci_get_drvdata(pdev); struct adapter *adapter = pci_get_drvdata(pdev);
...@@ -2835,7 +2835,7 @@ static void __devexit cxgb4vf_pci_remove(struct pci_dev *pdev) ...@@ -2835,7 +2835,7 @@ static void __devexit cxgb4vf_pci_remove(struct pci_dev *pdev)
* "Shutdown" quiesce the device, stopping Ingress Packet and Interrupt * "Shutdown" quiesce the device, stopping Ingress Packet and Interrupt
* delivery. * delivery.
*/ */
static void __devexit cxgb4vf_pci_shutdown(struct pci_dev *pdev) static void cxgb4vf_pci_shutdown(struct pci_dev *pdev)
{ {
struct adapter *adapter; struct adapter *adapter;
int pidx; int pidx;
...@@ -2905,8 +2905,8 @@ static struct pci_driver cxgb4vf_driver = { ...@@ -2905,8 +2905,8 @@ static struct pci_driver cxgb4vf_driver = {
.name = KBUILD_MODNAME, .name = KBUILD_MODNAME,
.id_table = cxgb4vf_pci_tbl, .id_table = cxgb4vf_pci_tbl,
.probe = cxgb4vf_pci_probe, .probe = cxgb4vf_pci_probe,
.remove = __devexit_p(cxgb4vf_pci_remove), .remove = cxgb4vf_pci_remove,
.shutdown = __devexit_p(cxgb4vf_pci_shutdown), .shutdown = cxgb4vf_pci_shutdown,
}; };
/* /*
......
...@@ -232,8 +232,8 @@ static inline int t4vf_wr_mbox_ns(struct adapter *adapter, const void *cmd, ...@@ -232,8 +232,8 @@ static inline int t4vf_wr_mbox_ns(struct adapter *adapter, const void *cmd,
return t4vf_wr_mbox_core(adapter, cmd, size, rpl, false); return t4vf_wr_mbox_core(adapter, cmd, size, rpl, false);
} }
int __devinit t4vf_wait_dev_ready(struct adapter *); int t4vf_wait_dev_ready(struct adapter *);
int __devinit t4vf_port_init(struct adapter *, int); int t4vf_port_init(struct adapter *, int);
int t4vf_fw_reset(struct adapter *); int t4vf_fw_reset(struct adapter *);
int t4vf_query_params(struct adapter *, unsigned int, const u32 *, u32 *); int t4vf_query_params(struct adapter *, unsigned int, const u32 *, u32 *);
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
* returning a value other than all 1's). Return an error if it doesn't * returning a value other than all 1's). Return an error if it doesn't
* become ready ... * become ready ...
*/ */
int __devinit t4vf_wait_dev_ready(struct adapter *adapter) int t4vf_wait_dev_ready(struct adapter *adapter)
{ {
const u32 whoami = T4VF_PL_BASE_ADDR + PL_VF_WHOAMI; const u32 whoami = T4VF_PL_BASE_ADDR + PL_VF_WHOAMI;
const u32 notready1 = 0xffffffff; const u32 notready1 = 0xffffffff;
...@@ -253,7 +253,7 @@ static int hash_mac_addr(const u8 *addr) ...@@ -253,7 +253,7 @@ static int hash_mac_addr(const u8 *addr)
* Initializes the SW state maintained for each link, including the link's * Initializes the SW state maintained for each link, including the link's
* capabilities and default speed/flow-control/autonegotiation settings. * capabilities and default speed/flow-control/autonegotiation settings.
*/ */
static void __devinit init_link_config(struct link_config *lc, static void init_link_config(struct link_config *lc,
unsigned int caps) unsigned int caps)
{ {
lc->supported = caps; lc->supported = caps;
...@@ -275,7 +275,7 @@ static void __devinit init_link_config(struct link_config *lc, ...@@ -275,7 +275,7 @@ static void __devinit init_link_config(struct link_config *lc,
* @adapter: the adapter * @adapter: the adapter
* @pidx: the adapter port index * @pidx: the adapter port index
*/ */
int __devinit t4vf_port_init(struct adapter *adapter, int pidx) int t4vf_port_init(struct adapter *adapter, int pidx)
{ {
struct port_info *pi = adap2pinfo(adapter, pidx); struct port_info *pi = adap2pinfo(adapter, pidx);
struct fw_vi_cmd vi_cmd, vi_rpl; struct fw_vi_cmd vi_cmd, vi_rpl;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment