Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304482
b: refs/heads/master
c: 25958ce
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Apr 25, 2012
1 parent 99b46f6 commit 3078ba9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 25 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8af2c75a328355c23d68d3f8651ad52af3c7979d
refs/heads/master: 25958ce32cd57dd91b42fa414b101d127e818c84
39 changes: 15 additions & 24 deletions trunk/drivers/staging/vme/vme.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,13 @@ void *vme_alloc_consistent(struct vme_resource *resource, size_t size,
}

if (bridge->parent == NULL) {
printk(KERN_ERR "Dev entry NULL for"
" bridge %s\n", bridge->name);
printk(KERN_ERR "Dev entry NULL for bridge %s\n", bridge->name);
return NULL;
}

if (bridge->alloc_consistent == NULL) {
printk(KERN_ERR "alloc_consistent not supported by"
" bridge %s\n", bridge->name);
printk(KERN_ERR "alloc_consistent not supported by bridge %s\n",
bridge->name);
return NULL;
}

Expand Down Expand Up @@ -133,14 +132,13 @@ void vme_free_consistent(struct vme_resource *resource, size_t size,
}

if (bridge->parent == NULL) {
printk(KERN_ERR "Dev entry NULL for"
" bridge %s\n", bridge->name);
printk(KERN_ERR "Dev entry NULL for bridge %s\n", bridge->name);
return;
}

if (bridge->free_consistent == NULL) {
printk(KERN_ERR "free_consistent not supported by"
" bridge %s\n", bridge->name);
printk(KERN_ERR "free_consistent not supported by bridge %s\n",
bridge->name);
return;
}

Expand Down Expand Up @@ -747,15 +745,13 @@ struct vme_dma_attr *vme_dma_pattern_attribute(u32 pattern, u32 type)

attributes = kmalloc(sizeof(struct vme_dma_attr), GFP_KERNEL);
if (attributes == NULL) {
printk(KERN_ERR "Unable to allocate memory for attributes "
"structure\n");
printk(KERN_ERR "Unable to allocate memory for attributes structure\n");
goto err_attr;
}

pattern_attr = kmalloc(sizeof(struct vme_dma_pattern), GFP_KERNEL);
if (pattern_attr == NULL) {
printk(KERN_ERR "Unable to allocate memory for pattern "
"attributes\n");
printk(KERN_ERR "Unable to allocate memory for pattern attributes\n");
goto err_pat;
}

Expand Down Expand Up @@ -786,15 +782,13 @@ struct vme_dma_attr *vme_dma_pci_attribute(dma_addr_t address)

attributes = kmalloc(sizeof(struct vme_dma_attr), GFP_KERNEL);
if (attributes == NULL) {
printk(KERN_ERR "Unable to allocate memory for attributes "
"structure\n");
printk(KERN_ERR "Unable to allocate memory for attributes structure\n");
goto err_attr;
}

pci_attr = kmalloc(sizeof(struct vme_dma_pci), GFP_KERNEL);
if (pci_attr == NULL) {
printk(KERN_ERR "Unable to allocate memory for pci "
"attributes\n");
printk(KERN_ERR "Unable to allocate memory for pci attributes\n");
goto err_pci;
}

Expand Down Expand Up @@ -826,15 +820,13 @@ struct vme_dma_attr *vme_dma_vme_attribute(unsigned long long address,
attributes = kmalloc(
sizeof(struct vme_dma_attr), GFP_KERNEL);
if (attributes == NULL) {
printk(KERN_ERR "Unable to allocate memory for attributes "
"structure\n");
printk(KERN_ERR "Unable to allocate memory for attributes structure\n");
goto err_attr;
}

vme_attr = kmalloc(sizeof(struct vme_dma_vme), GFP_KERNEL);
if (vme_attr == NULL) {
printk(KERN_ERR "Unable to allocate memory for vme "
"attributes\n");
printk(KERN_ERR "Unable to allocate memory for vme attributes\n");
goto err_vme;
}

Expand Down Expand Up @@ -982,8 +974,8 @@ void vme_irq_handler(struct vme_bridge *bridge, int level, int statid)
if (call != NULL)
call(level, statid, priv_data);
else
printk(KERN_WARNING "Spurilous VME interrupt, level:%x, "
"vector:%x\n", level, statid);
printk(KERN_WARNING "Spurilous VME interrupt, level:%x, vector:%x\n",
level, statid);
}
EXPORT_SYMBOL(vme_irq_handler);

Expand Down Expand Up @@ -1112,8 +1104,7 @@ struct vme_resource *vme_lm_request(struct vme_dev *vdev)
struct vme_lm_resource, list);

if (lm == NULL) {
printk(KERN_ERR "Registered NULL Location Monitor "
"resource\n");
printk(KERN_ERR "Registered NULL Location Monitor resource\n");
continue;
}

Expand Down

0 comments on commit 3078ba9

Please sign in to comment.