static ssize_t pnp_show_current_resources(struct device *dmdev, char *buf) 
static ssize_t pnp_show_current_resources(struct device *dmdev, struct device_attribute *attr, char *buf) 
static ssize_t pnp_show_current_resources(struct device *dmdev, char *buf){	struct pnp_dev *dev = to_pnp_dev(dmdev);	int i, ret;	pnp_info_buffer_t *buffer;	if (!dev)		return -EINVAL;	buffer = (pnp_info_buffer_t *) pnp_alloc(sizeof(pnp_info_buffer_t));	if (!buffer)		return -ENOMEM;	buffer->len = PAGE_SIZE;	buffer->buffer = buf;	buffer->curr = buffer->buffer;	pnp_printf(buffer,"state = ");	if (dev->active)		pnp_printf(buffer,"active\n");	else		pnp_printf(buffer,"disabled\n");	for (i = 0; i < PNP_MAX_PORT; i++) {		if (pnp_port_valid(dev, i)) {			pnp_printf(buffer,"io");			if (pnp_port_flags(dev, i) & IORESOURCE_DISABLED)				pnp_printf(buffer," disabled\n");			else				pnp_printf(buffer," 0x%lx-0x%lx\n",						pnp_port_start(dev, i),						pnp_port_end(dev, i));		}	}	for (i = 0; i < PNP_MAX_MEM; i++) {		if (pnp_mem_valid(dev, i)) {			pnp_printf(buffer,"mem");			if (pnp_mem_flags(dev, i) & IORESOURCE_DISABLED)				pnp_printf(buffer," disabled\n");			else				pnp_printf(buffer," 0x%lx-0x%lx\n",						pnp_mem_start(dev, i),						pnp_mem_end(dev, i));		}	}	for (i = 0; i < PNP_MAX_IRQ; i++) {		if (pnp_irq_valid(dev, i)) {			pnp_printf(buffer,"irq");			if (pnp_irq_flags(dev, i) & IORESOURCE_DISABLED)				pnp_printf(buffer," disabled\n");			else				pnp_printf(buffer," %ld\n",						pnp_irq(dev, i));		}	}	for (i = 0; i < PNP_MAX_DMA; i++) {		if (pnp_dma_valid(dev, i)) {			pnp_printf(buffer,"dma");			if (pnp_dma_flags(dev, i) & IORESOURCE_DISABLED)				pnp_printf(buffer," disabled\n");			else				pnp_printf(buffer," %ld\n",						pnp_dma(dev, i));		}	}	ret = (buffer->curr - buf);	kfree(buffer);	return ret;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/e404e274f62665f3333d6a539d0d3701f678a598/interface.c/clean/drivers/pnp/interface.c