Commit 9d4c0c9f authored by Philippe Loctaux's avatar Philippe Loctaux Committed by Greg Kroah-Hartman

Staging: vme: vme_user: fixed an alignment coding style issue

Fixed a coding style issue.
Signed-off-by: default avatarPhilippe Loctaux <loctauxphilippe@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fb02205a
...@@ -573,7 +573,7 @@ static int vme_user_probe(struct vme_dev *vdev) ...@@ -573,7 +573,7 @@ static int vme_user_probe(struct vme_dev *vdev)
* by all windows. * by all windows.
*/ */
image[i].resource = vme_slave_request(vme_user_bridge, image[i].resource = vme_slave_request(vme_user_bridge,
VME_A24, VME_SCT); VME_A24, VME_SCT);
if (!image[i].resource) { if (!image[i].resource) {
dev_warn(&vdev->dev, dev_warn(&vdev->dev,
"Unable to allocate slave resource\n"); "Unable to allocate slave resource\n");
...@@ -582,7 +582,8 @@ static int vme_user_probe(struct vme_dev *vdev) ...@@ -582,7 +582,8 @@ static int vme_user_probe(struct vme_dev *vdev)
} }
image[i].size_buf = PCI_BUF_SIZE; image[i].size_buf = PCI_BUF_SIZE;
image[i].kern_buf = vme_alloc_consistent(image[i].resource, image[i].kern_buf = vme_alloc_consistent(image[i].resource,
image[i].size_buf, &image[i].pci_buf); image[i].size_buf,
&image[i].pci_buf);
if (!image[i].kern_buf) { if (!image[i].kern_buf) {
dev_warn(&vdev->dev, dev_warn(&vdev->dev,
"Unable to allocate memory for buffer\n"); "Unable to allocate memory for buffer\n");
...@@ -600,7 +601,8 @@ static int vme_user_probe(struct vme_dev *vdev) ...@@ -600,7 +601,8 @@ static int vme_user_probe(struct vme_dev *vdev)
for (i = MASTER_MINOR; i < (MASTER_MAX + 1); i++) { for (i = MASTER_MINOR; i < (MASTER_MAX + 1); i++) {
/* XXX Need to properly request attributes */ /* XXX Need to properly request attributes */
image[i].resource = vme_master_request(vme_user_bridge, image[i].resource = vme_master_request(vme_user_bridge,
VME_A32, VME_SCT, VME_D32); VME_A32, VME_SCT,
VME_D32);
if (!image[i].resource) { if (!image[i].resource) {
dev_warn(&vdev->dev, dev_warn(&vdev->dev,
"Unable to allocate master resource\n"); "Unable to allocate master resource\n");
...@@ -645,7 +647,8 @@ static int vme_user_probe(struct vme_dev *vdev) ...@@ -645,7 +647,8 @@ static int vme_user_probe(struct vme_dev *vdev)
num = (type[i] == SLAVE_MINOR) ? i - (MASTER_MAX + 1) : i; num = (type[i] == SLAVE_MINOR) ? i - (MASTER_MAX + 1) : i;
image[i].device = device_create(vme_user_sysfs_class, NULL, image[i].device = device_create(vme_user_sysfs_class, NULL,
MKDEV(VME_MAJOR, i), NULL, name, num); MKDEV(VME_MAJOR, i), NULL,
name, num);
if (IS_ERR(image[i].device)) { if (IS_ERR(image[i].device)) {
dev_info(&vdev->dev, "Error creating sysfs device\n"); dev_info(&vdev->dev, "Error creating sysfs device\n");
err = PTR_ERR(image[i].device); err = PTR_ERR(image[i].device);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment