git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
drivers
/
pnp
/
manager.c
diff --git
a/drivers/pnp/manager.c
b/drivers/pnp/manager.c
index
5026b34
..
c4256aa
100644
(file)
--- a/
drivers/pnp/manager.c
+++ b/
drivers/pnp/manager.c
@@
-6,6
+6,7
@@
*
*/
*
*/
+#include <linux/config.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/init.h>
@@
-19,8
+20,7
@@
DECLARE_MUTEX(pnp_res_mutex);
static int pnp_assign_port(struct pnp_dev *dev, struct pnp_port *rule, int idx)
{
static int pnp_assign_port(struct pnp_dev *dev, struct pnp_port *rule, int idx)
{
- resource_size_t *start, *end;
- unsigned long *flags;
+ unsigned long *start, *end, *flags;
if (!dev || !rule)
return -EINVAL;
if (!dev || !rule)
return -EINVAL;
@@
-63,8
+63,7
@@
static int pnp_assign_port(struct pnp_dev *dev, struct pnp_port *rule, int idx)
static int pnp_assign_mem(struct pnp_dev *dev, struct pnp_mem *rule, int idx)
{
static int pnp_assign_mem(struct pnp_dev *dev, struct pnp_mem *rule, int idx)
{
- resource_size_t *start, *end;
- unsigned long *flags;
+ unsigned long *start, *end, *flags;
if (!dev || !rule)
return -EINVAL;
if (!dev || !rule)
return -EINVAL;
@@
-117,8
+116,7
@@
static int pnp_assign_mem(struct pnp_dev *dev, struct pnp_mem *rule, int idx)
static int pnp_assign_irq(struct pnp_dev * dev, struct pnp_irq *rule, int idx)
{
static int pnp_assign_irq(struct pnp_dev * dev, struct pnp_irq *rule, int idx)
{
- resource_size_t *start, *end;
- unsigned long *flags;
+ unsigned long *start, *end, *flags;
int i;
/* IRQ priority: this table is good for i386 */
int i;
/* IRQ priority: this table is good for i386 */
@@
-170,8
+168,7
@@
static int pnp_assign_irq(struct pnp_dev * dev, struct pnp_irq *rule, int idx)
static int pnp_assign_dma(struct pnp_dev *dev, struct pnp_dma *rule, int idx)
{
static int pnp_assign_dma(struct pnp_dev *dev, struct pnp_dma *rule, int idx)
{
- resource_size_t *start, *end;
- unsigned long *flags;
+ unsigned long *start, *end, *flags;
int i;
/* DMA priority: this table is good for i386 */
int i;
/* DMA priority: this table is good for i386 */
@@
-482,7
+479,7
@@
int pnp_auto_config_dev(struct pnp_dev *dev)
int pnp_start_dev(struct pnp_dev *dev)
{
if (!pnp_can_write(dev)) {
int pnp_start_dev(struct pnp_dev *dev)
{
if (!pnp_can_write(dev)) {
- pnp_info("Device %s does not support activation.", dev->dev.bus_id);
+ pnp_info("Device %s does not support
ed
activation.", dev->dev.bus_id);
return -EINVAL;
}
return -EINVAL;
}
@@
-506,7
+503,7
@@
int pnp_start_dev(struct pnp_dev *dev)
int pnp_stop_dev(struct pnp_dev *dev)
{
if (!pnp_can_disable(dev)) {
int pnp_stop_dev(struct pnp_dev *dev)
{
if (!pnp_can_disable(dev)) {
- pnp_info("Device %s does not support disabling.", dev->dev.bus_id);
+ pnp_info("Device %s does not support
ed
disabling.", dev->dev.bus_id);
return -EINVAL;
}
if (dev->protocol->disable(dev)<0) {
return -EINVAL;
}
if (dev->protocol->disable(dev)<0) {
@@
-585,8
+582,7
@@
int pnp_disable_dev(struct pnp_dev *dev)
* @size: size of region
*
*/
* @size: size of region
*
*/
-void pnp_resource_change(struct resource *resource, resource_size_t start,
- resource_size_t size)
+void pnp_resource_change(struct resource *resource, unsigned long start, unsigned long size)
{
if (resource == NULL)
return;
{
if (resource == NULL)
return;