From: Paul Fulghum <paulkf@microgate.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: Linus Torvalds <torvalds@osdl.org>
Subject: [PATCH] 2.6.4 synclinkmp.c
Date: 11 Mar 2004 10:04:24 -0600 [thread overview]
Message-ID: <1079021063.1950.10.camel@toshiba> (raw)
Patch for synclinkmp.c against 2.6.4
* Track driver API changes
* Remove cast (kernel janitor)
* Replace page_free call with kfree (to match kmalloc allocation)
Please apply.
--
Paul Fulghum
paulkf@microgate.com
--- linux-2.6.4/drivers/char/synclinkmp.c 2004-03-11 08:37:38.000000000 -0600
+++ linux-2.6.4-mg1/drivers/char/synclinkmp.c 2004-03-11 08:46:21.000000000 -0600
@@ -1,5 +1,5 @@
/*
- * $Id: synclinkmp.c,v 4.14 2003/09/05 15:26:03 paulkf Exp $
+ * $Id: synclinkmp.c,v 4.19 2004/03/08 15:29:23 paulkf Exp $
*
* Device driver for Microgate SyncLink Multiport
* high speed multiprotocol serial adapter.
@@ -494,7 +494,7 @@
MODULE_PARM(dosyncppp,"1-" __MODULE_STRING(MAX_DEVICES) "i");
static char *driver_name = "SyncLink MultiPort driver";
-static char *driver_version = "$Revision: 4.14 $";
+static char *driver_version = "$Revision: 4.19 $";
static int synclinkmp_init_one(struct pci_dev *dev,const struct pci_device_id *ent);
static void synclinkmp_remove_one(struct pci_dev *dev);
@@ -1653,11 +1653,12 @@
info->if_ptr = &info->pppdev;
info->netdev = info->pppdev.dev = d;
- sppp_attach(&info->pppdev);
-
d->irq = info->irq_level;
d->priv = info;
+ sppp_attach(&info->pppdev);
+ cb_setup(d);
+
if (register_netdev(d)) {
printk(KERN_WARNING "%s: register_netdev failed.\n", d->name);
sppp_detach(info->netdev);
@@ -1828,7 +1829,7 @@
static int sppp_cb_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
{
- SLMP_INFO *info = (SLMP_INFO *)dev->priv;
+ SLMP_INFO *info = dev->priv;
if (debug_level >= DEBUG_LEVEL_INFO)
printk("%s(%d):ioctl %s cmd=%08X\n", __FILE__,__LINE__,
info->netname, cmd );
@@ -2604,7 +2605,7 @@
del_timer(&info->status_timer);
if (info->tx_buf) {
- free_page((unsigned long) info->tx_buf);
+ kfree(info->tx_buf);
info->tx_buf = 0;
}
reply other threads:[~2004-03-11 16:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1079021063.1950.10.camel@toshiba \
--to=paulkf@microgate.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®