]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/iio/inkern.c
Merge tag 'mailbox-v4.14' of git://git.linaro.org/landing-teams/working/fujitsu/integ...
[mirror_ubuntu-bionic-kernel.git] / drivers / iio / inkern.c
index da3d06b073bb2af2b51faa63601ade8b17320212..069defcc6d9bec73438c292ec98ac3d4195833c6 100644 (file)
@@ -44,7 +44,7 @@ int iio_map_array_register(struct iio_dev *indio_dev, struct iio_map *maps)
                }
                mapi->map = &maps[i];
                mapi->indio_dev = indio_dev;
-               list_add(&mapi->l, &iio_map_list);
+               list_add_tail(&mapi->l, &iio_map_list);
                i++;
        }
 error_ret:
@@ -205,8 +205,8 @@ static struct iio_channel *of_iio_channel_get_by_name(struct device_node *np,
                if (!IS_ERR(chan) || PTR_ERR(chan) == -EPROBE_DEFER)
                        break;
                else if (name && index >= 0) {
-                       pr_err("ERROR: could not get IIO channel %s:%s(%i)\n",
-                               np->full_name, name ? name : "", index);
+                       pr_err("ERROR: could not get IIO channel %pOF:%s(%i)\n",
+                               np, name ? name : "", index);
                        return NULL;
                }