public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Greg KH <greg@kroah•com>
Cc: linux-next@vger•kernel.org, linux-kernel@vger•kernel.org,
	"Prashant P. Shah" <pshah.mumbai@gmail•com>,
	Dominik Brodowski <linux@dominikbrodowski•net>
Subject: linux-next: manual merge of the staging-next tree with the pcmcia tree
Date: Mon, 2 Aug 2010 13:57:46 +1000	[thread overview]
Message-ID: <20100802135746.b869dabc.sfr@canb.auug.org.au> (raw)

Hi Greg,

Today's linux-next merge of the staging-next tree got a conflict in
drivers/staging/wlags49_h2/wl_cs.c between commits
9b3efec734d2d79d82a6f5cef25a618d41a6b2c5 ("pcmcia: do not use io_req_t
after call to pcmcia_request_io()") and
cd8ae1e0a5d36406b518cea25446492f07ddddcf ("pcmcia: do not use io_req_t
when calling pcmcia_request_io()") from the pcmcia tree and commit
6d98be390ab55bb5f617d69aedf9bec27d039b3b ("Staging: wl_cs.c: converted
space to tabs in wl_cs.c") from the staging-next tree.

I fixed it up (see below) and can carry the fix as necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@canb•auug.org.au

diff --cc drivers/staging/wlags49_h2/wl_cs.c
index f15afd2,464b067..0000000
--- a/drivers/staging/wlags49_h2/wl_cs.c
+++ b/drivers/staging/wlags49_h2/wl_cs.c
@@@ -132,35 -133,36 +132,35 @@@ extern dbg_info_t *DbgInfo
   ******************************************************************************/
  static int wl_adapter_attach(struct pcmcia_device *link)
  {
-     struct net_device   *dev;
-     struct wl_private	*lp;
-     /*------------------------------------------------------------------------*/
- 
-     DBG_FUNC( "wl_adapter_attach" );
-     DBG_ENTER( DbgInfo );
- 
-     dev = wl_device_alloc();
-     if(dev == NULL) {
-         DBG_ERROR( DbgInfo, "wl_device_alloc returned NULL\n");
- 	return -ENOMEM;
-     }
- 
-     link->resource[0]->end      = HCF_NUM_IO_PORTS;
-     link->resource[0]->flags    = IO_DATA_PATH_WIDTH_16;
-     link->conf.Attributes   = CONF_ENABLE_IRQ;
-     link->conf.IntType      = INT_MEMORY_AND_IO;
-     link->conf.ConfigIndex  = 5;
-     link->conf.Present      = PRESENT_OPTION;
- 
-     link->priv = dev;
-     lp = wl_priv(dev);
-     lp->link = link;
- 
-     wl_adapter_insert(link);
- 
-     DBG_LEAVE( DbgInfo );
-     return 0;
- } // wl_adapter_attach
+ 	struct net_device   *dev;
+ 	struct wl_private   *lp;
+ 	/*--------------------------------------------------------------------*/
+ 
+ 	DBG_FUNC("wl_adapter_attach");
+ 	DBG_ENTER(DbgInfo);
+ 
+ 	dev = wl_device_alloc();
+ 	if (dev == NULL) {
+ 		DBG_ERROR(DbgInfo, "wl_device_alloc returned NULL\n");
+ 		return -ENOMEM;
+ 	}
+ 
 -	link->io.NumPorts1      = HCF_NUM_IO_PORTS;
 -	link->io.Attributes1    = IO_DATA_PATH_WIDTH_16;
 -	link->io.IOAddrLines    = 6;
++	link->resource[0]->end  = HCF_NUM_IO_PORTS;
++	link->resource[0]->flags = IO_DATA_PATH_WIDTH_16;
+ 	link->conf.Attributes   = CONF_ENABLE_IRQ;
+ 	link->conf.IntType      = INT_MEMORY_AND_IO;
+ 	link->conf.ConfigIndex  = 5;
+ 	link->conf.Present      = PRESENT_OPTION;
+ 
+ 	link->priv = dev;
+ 	lp = wl_priv(dev);
+ 	lp->link = link;
+ 
+ 	wl_adapter_insert(link);
+ 
+ 	DBG_LEAVE(DbgInfo);
+ 	return 0;
+ } /* wl_adapter_attach */
  /*============================================================================*/
  
  
@@@ -289,61 -290,59 +288,60 @@@ static int wl_adapter_resume(struct pcm
   *      N/A
   *
   ******************************************************************************/
- void wl_adapter_insert( struct pcmcia_device *link )
+ void wl_adapter_insert(struct pcmcia_device *link)
  {
-     struct net_device       *dev;
-     int i;
-     int                     ret;
-     /*------------------------------------------------------------------------*/
+ 	struct net_device *dev;
+ 	int i;
+ 	int ret;
+ 	/*--------------------------------------------------------------------*/
  
-     DBG_FUNC( "wl_adapter_insert" );
-     DBG_ENTER( DbgInfo );
-     DBG_PARAM( DbgInfo, "link", "0x%p", link );
+ 	DBG_FUNC("wl_adapter_insert");
+ 	DBG_ENTER(DbgInfo);
+ 	DBG_PARAM(DbgInfo, "link", "0x%p", link);
  
-     dev     = link->priv;
+ 	dev     = link->priv;
  
-     /* Do we need to allocate an interrupt? */
-     link->conf.Attributes |= CONF_ENABLE_IRQ;
-     link->io_lines = 6;
+ 	/* Do we need to allocate an interrupt? */
+ 	link->conf.Attributes |= CONF_ENABLE_IRQ;
++	link->io_lines = 6;
  
-     ret = pcmcia_request_io(link);
-     if (ret != 0)
-         goto failed;
 -	ret = pcmcia_request_io(link, &link->io);
++	ret = pcmcia_request_io(link);
+ 	if (ret != 0)
+ 		goto failed;
  
-     ret = pcmcia_request_irq(link, (void *) wl_isr);
-     if (ret != 0)
-         goto failed;
+ 	ret = pcmcia_request_irq(link, (void *) wl_isr);
+ 	if (ret != 0)
+ 		goto failed;
  
-     ret = pcmcia_request_configuration(link, &link->conf);
-     if (ret != 0)
-         goto failed;
+ 	ret = pcmcia_request_configuration(link, &link->conf);
+ 	if (ret != 0)
+ 		goto failed;
  
-     dev->irq        = link->irq;
-     dev->base_addr  = link->resource[0]->start;
+ 	dev->irq        = link->irq;
 -	dev->base_addr  = link->io.BasePort1;
++	dev->base_addr  = link->resource[0]->start;
  
-     SET_NETDEV_DEV(dev, &link->dev);
-     if (register_netdev(dev) != 0) {
- 	printk("%s: register_netdev() failed\n", MODULE_NAME);
- 	goto failed;
-     }
+ 	SET_NETDEV_DEV(dev, &link->dev);
+ 	if (register_netdev(dev) != 0) {
+ 		printk("%s: register_netdev() failed\n", MODULE_NAME);
+ 		goto failed;
+ 	}
  
-     register_wlags_sysfs(dev);
+ 	register_wlags_sysfs(dev);
  
-     printk(KERN_INFO "%s: Wireless, io_addr %#03lx, irq %d, ""mac_address ",
-                dev->name, dev->base_addr, dev->irq);
-     for( i = 0; i < ETH_ALEN; i++ ) {
-         printk("%02X%c", dev->dev_addr[i], ((i < (ETH_ALEN-1)) ? ':' : '\n'));
-     }
+ 	printk(KERN_INFO "%s: Wireless, io_addr %#03lx, irq %d, ""mac_address ",
+ 		dev->name, dev->base_addr, dev->irq);
+ 	for (i = 0; i < ETH_ALEN; i++)
+ 		printk("%02X%c", dev->dev_addr[i], ((i < (ETH_ALEN-1)) ? ':' : '\n'));
  
-     DBG_LEAVE( DbgInfo );
-     return;
+ 	DBG_LEAVE(DbgInfo);
+ 	return;
  
  failed:
-     wl_adapter_release( link );
+ 	wl_adapter_release(link);
  
-     DBG_LEAVE(DbgInfo);
-     return;
- } // wl_adapter_insert
+ 	DBG_LEAVE(DbgInfo);
+ 	return;
+ } /* wl_adapter_insert */
  /*============================================================================*/
  
  

             reply	other threads:[~2010-08-02  3:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-02  3:57 Stephen Rothwell [this message]
2010-08-02 22:23 ` linux-next: manual merge of the staging-next tree with the pcmcia tree Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2010-08-02  3:57 Stephen Rothwell
2010-08-02 22:23 ` Greg KH
2010-05-17  5:49 Stephen Rothwell
2010-05-17 18:01 ` Greg KH
2010-05-12  6:03 Stephen Rothwell
2010-05-12 19:50 ` Greg KH
2010-04-28  6:11 Stephen Rothwell
2010-04-28 15:25 ` Greg KH
2010-04-28  6:07 Stephen Rothwell
2010-04-28 15:26 ` Greg KH

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=20100802135746.b869dabc.sfr@canb.auug.org.au \
    --to=sfr@canb$(echo .)auug.org.au \
    --cc=greg@kroah$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=linux@dominikbrodowski$(echo .)net \
    --cc=pshah.mumbai@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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