|
@@ -112,20 +112,20 @@ static void com20020_detach(struct pcmcia_device *p_dev);
|
|
|
|
|
|
/*====================================================================*/
|
|
/*====================================================================*/
|
|
|
|
|
|
-typedef struct com20020_dev_t {
|
|
|
|
|
|
+struct com20020_dev {
|
|
struct net_device *dev;
|
|
struct net_device *dev;
|
|
-} com20020_dev_t;
|
|
|
|
|
|
+};
|
|
|
|
|
|
static int com20020_probe(struct pcmcia_device *p_dev)
|
|
static int com20020_probe(struct pcmcia_device *p_dev)
|
|
{
|
|
{
|
|
- com20020_dev_t *info;
|
|
|
|
|
|
+ struct com20020_dev *info;
|
|
struct net_device *dev;
|
|
struct net_device *dev;
|
|
struct arcnet_local *lp;
|
|
struct arcnet_local *lp;
|
|
|
|
|
|
dev_dbg(&p_dev->dev, "com20020_attach()\n");
|
|
dev_dbg(&p_dev->dev, "com20020_attach()\n");
|
|
|
|
|
|
/* Create new network device */
|
|
/* Create new network device */
|
|
- info = kzalloc(sizeof(struct com20020_dev_t), GFP_KERNEL);
|
|
|
|
|
|
+ info = kzalloc(sizeof(*info), GFP_KERNEL);
|
|
if (!info)
|
|
if (!info)
|
|
goto fail_alloc_info;
|
|
goto fail_alloc_info;
|
|
|
|
|
|
@@ -160,7 +160,7 @@ fail_alloc_info:
|
|
|
|
|
|
static void com20020_detach(struct pcmcia_device *link)
|
|
static void com20020_detach(struct pcmcia_device *link)
|
|
{
|
|
{
|
|
- struct com20020_dev_t *info = link->priv;
|
|
|
|
|
|
+ struct com20020_dev *info = link->priv;
|
|
struct net_device *dev = info->dev;
|
|
struct net_device *dev = info->dev;
|
|
|
|
|
|
dev_dbg(&link->dev, "detach...\n");
|
|
dev_dbg(&link->dev, "detach...\n");
|
|
@@ -199,7 +199,7 @@ static void com20020_detach(struct pcmcia_device *link)
|
|
static int com20020_config(struct pcmcia_device *link)
|
|
static int com20020_config(struct pcmcia_device *link)
|
|
{
|
|
{
|
|
struct arcnet_local *lp;
|
|
struct arcnet_local *lp;
|
|
- com20020_dev_t *info;
|
|
|
|
|
|
+ struct com20020_dev *info;
|
|
struct net_device *dev;
|
|
struct net_device *dev;
|
|
int i, ret;
|
|
int i, ret;
|
|
int ioaddr;
|
|
int ioaddr;
|
|
@@ -291,7 +291,7 @@ static void com20020_release(struct pcmcia_device *link)
|
|
|
|
|
|
static int com20020_suspend(struct pcmcia_device *link)
|
|
static int com20020_suspend(struct pcmcia_device *link)
|
|
{
|
|
{
|
|
- com20020_dev_t *info = link->priv;
|
|
|
|
|
|
+ struct com20020_dev *info = link->priv;
|
|
struct net_device *dev = info->dev;
|
|
struct net_device *dev = info->dev;
|
|
|
|
|
|
if (link->open)
|
|
if (link->open)
|
|
@@ -302,7 +302,7 @@ static int com20020_suspend(struct pcmcia_device *link)
|
|
|
|
|
|
static int com20020_resume(struct pcmcia_device *link)
|
|
static int com20020_resume(struct pcmcia_device *link)
|
|
{
|
|
{
|
|
- com20020_dev_t *info = link->priv;
|
|
|
|
|
|
+ struct com20020_dev *info = link->priv;
|
|
struct net_device *dev = info->dev;
|
|
struct net_device *dev = info->dev;
|
|
|
|
|
|
if (link->open) {
|
|
if (link->open) {
|