> -----Original Message----- > From: Greg KH [mailto:greg@xxxxxxxxx] > Sent: Saturday, June 17, 2006 1:52 AM > To: Kaustav Majumdar (WT01 - Semiconductors & Consumer Electronics) > Cc: kernelnewbies@xxxxxxxxxxxx > Subject: Re: generic platform device question > > A: http://en.wikipedia.org/wiki/Top_post > Q: Were do I find info about this thing called top-posting? > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > A: No. > Q: Should I include quotations after my reply? > Sorry, I will remember it. > On Wed, Jun 14, 2006 at 10:03:38AM +0530, kaustav.majumdar@xxxxxxxxx > wrote: > > Hi Greg, > > Thanks for the reply. > > So as we will only have multiple instances of device specific structure > > so the global static variables declared in the driver module will also > > have a single instance. > > If it is so, then I have a doubt regarding the sl811_cs.c > > There the platform_device structure is static global. > > After allocating the resources, we pass the resources to the sl811-hcd > > through this structure. > > As it is a global structure, then we can not create more than one > > instance of it. So what if we will have more than one sl811 device? As > > only one platform_device instance is possible, is it possible to have > > more than one sl811 device operating in one time? > > Do you have hardware with more than one sl811 controller in it? I think > that this driver just "knows" that this is not possible to do. > I suppose sl811 is also supported as PC card (from the presence of sl811_cs). So if we will have two PC cards then the situation arises. Regards, Kaustav > thanks, > > greg k-h -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/