]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
Revert "crypto/nx: Add nx842_add_coprocs_list function"
authorSeth Forshee <seth.forshee@canonical.com>
Wed, 4 Oct 2017 21:15:03 +0000 (16:15 -0500)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 4 Oct 2017 21:17:49 +0000 (16:17 -0500)
BugLink: http://bugs.launchpad.net/bugs/1721391
This reverts commit 8e177bece45c751482497b0903e3b4a892d2f6c0.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/crypto/nx/nx-842-powernv.c

index 829b5cad0043cdb7784143c37c94ec1b9594bf28..67dc06f9b557339123775527b0194d51b43b3dda 100644 (file)
@@ -550,14 +550,6 @@ static int nx842_powernv_decompress(const unsigned char *in, unsigned int inlen,
                                      wmem, CCW_FC_842_DECOMP_CRC);
 }
 
-static inline void nx842_add_coprocs_list(struct nx842_coproc *coproc,
-                                       int chipid)
-{
-       coproc->chip_id = chipid;
-       INIT_LIST_HEAD(&coproc->list);
-       list_add(&coproc->list, &nx842_coprocs);
-}
-
 static int __init nx842_powernv_probe(struct device_node *dn)
 {
        struct nx842_coproc *coproc;
@@ -584,9 +576,11 @@ static int __init nx842_powernv_probe(struct device_node *dn)
        if (!coproc)
                return -ENOMEM;
 
+       coproc->chip_id = chip_id;
        coproc->ct = ct;
        coproc->ci = ci;
-       nx842_add_coprocs_list(coproc, chip_id);
+       INIT_LIST_HEAD(&coproc->list);
+       list_add(&coproc->list, &nx842_coprocs);
 
        pr_info("coprocessor found on chip %d, CT %d CI %d\n", chip_id, ct, ci);