Commit bbcb2840 authored by Peng Li's avatar Peng Li Committed by David S. Miller

net: pci200syn: remove redundant blank lines

This patch removes some redundant blank lines.
Signed-off-by: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5938b227
...@@ -58,8 +58,6 @@ typedef struct { ...@@ -58,8 +58,6 @@ typedef struct {
u32 init_ctrl; /* 50h : EEPROM ctrl, Init Ctrl, etc */ u32 init_ctrl; /* 50h : EEPROM ctrl, Init Ctrl, etc */
}plx9052; }plx9052;
typedef struct port_s { typedef struct port_s {
struct napi_struct napi; struct napi_struct napi;
struct net_device *netdev; struct net_device *netdev;
...@@ -76,8 +74,6 @@ typedef struct port_s { ...@@ -76,8 +74,6 @@ typedef struct port_s {
u8 chan; /* physical port # - 0 or 1 */ u8 chan; /* physical port # - 0 or 1 */
}port_t; }port_t;
typedef struct card_s { typedef struct card_s {
u8 __iomem *rambase; /* buffer memory base (virtual) */ u8 __iomem *rambase; /* buffer memory base (virtual) */
u8 __iomem *scabase; /* SCA memory base (virtual) */ u8 __iomem *scabase; /* SCA memory base (virtual) */
...@@ -90,7 +86,6 @@ typedef struct card_s { ...@@ -90,7 +86,6 @@ typedef struct card_s {
port_t ports[2]; port_t ports[2];
}card_t; }card_t;
#define get_port(card, port) (&card->ports[port]) #define get_port(card, port) (&card->ports[port])
#define sca_flush(card) (sca_in(IER0, card)) #define sca_flush(card) (sca_in(IER0, card))
...@@ -112,7 +107,6 @@ static inline void new_memcpy_toio(char __iomem *dest, char *src, int length) ...@@ -112,7 +107,6 @@ static inline void new_memcpy_toio(char __iomem *dest, char *src, int length)
#include "hd64572.c" #include "hd64572.c"
static void pci200_set_iface(port_t *port) static void pci200_set_iface(port_t *port)
{ {
card_t *card = port->card; card_t *card = port->card;
...@@ -151,8 +145,6 @@ static void pci200_set_iface(port_t *port) ...@@ -151,8 +145,6 @@ static void pci200_set_iface(port_t *port)
sca_set_port(port); sca_set_port(port);
} }
static int pci200_open(struct net_device *dev) static int pci200_open(struct net_device *dev)
{ {
port_t *port = dev_to_port(dev); port_t *port = dev_to_port(dev);
...@@ -167,8 +159,6 @@ static int pci200_open(struct net_device *dev) ...@@ -167,8 +159,6 @@ static int pci200_open(struct net_device *dev)
return 0; return 0;
} }
static int pci200_close(struct net_device *dev) static int pci200_close(struct net_device *dev)
{ {
sca_close(dev); sca_close(dev);
...@@ -177,8 +167,6 @@ static int pci200_close(struct net_device *dev) ...@@ -177,8 +167,6 @@ static int pci200_close(struct net_device *dev)
return 0; return 0;
} }
static int pci200_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) static int pci200_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
{ {
const size_t size = sizeof(sync_serial_settings); const size_t size = sizeof(sync_serial_settings);
...@@ -233,8 +221,6 @@ static int pci200_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ...@@ -233,8 +221,6 @@ static int pci200_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
} }
} }
static void pci200_pci_remove_one(struct pci_dev *pdev) static void pci200_pci_remove_one(struct pci_dev *pdev)
{ {
int i; int i;
...@@ -407,15 +393,12 @@ static int pci200_pci_init_one(struct pci_dev *pdev, ...@@ -407,15 +393,12 @@ static int pci200_pci_init_one(struct pci_dev *pdev,
return 0; return 0;
} }
static const struct pci_device_id pci200_pci_tbl[] = { static const struct pci_device_id pci200_pci_tbl[] = {
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050, PCI_VENDOR_ID_PLX, { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050, PCI_VENDOR_ID_PLX,
PCI_DEVICE_ID_PLX_PCI200SYN, 0, 0, 0 }, PCI_DEVICE_ID_PLX_PCI200SYN, 0, 0, 0 },
{ 0, } { 0, }
}; };
static struct pci_driver pci200_pci_driver = { static struct pci_driver pci200_pci_driver = {
.name = "PCI200SYN", .name = "PCI200SYN",
.id_table = pci200_pci_tbl, .id_table = pci200_pci_tbl,
...@@ -423,7 +406,6 @@ static struct pci_driver pci200_pci_driver = { ...@@ -423,7 +406,6 @@ static struct pci_driver pci200_pci_driver = {
.remove = pci200_pci_remove_one, .remove = pci200_pci_remove_one,
}; };
static int __init pci200_init_module(void) static int __init pci200_init_module(void)
{ {
if (pci_clock_freq < 1000000 || pci_clock_freq > 80000000) { if (pci_clock_freq < 1000000 || pci_clock_freq > 80000000) {
...@@ -433,8 +415,6 @@ static int __init pci200_init_module(void) ...@@ -433,8 +415,6 @@ static int __init pci200_init_module(void)
return pci_register_driver(&pci200_pci_driver); return pci_register_driver(&pci200_pci_driver);
} }
static void __exit pci200_cleanup_module(void) static void __exit pci200_cleanup_module(void)
{ {
pci_unregister_driver(&pci200_pci_driver); pci_unregister_driver(&pci200_pci_driver);
......
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