]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
greybus: fix two misnamed functions
authorAlex Elder <elder@linaro.org>
Mon, 6 Oct 2014 11:53:06 +0000 (06:53 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 6 Oct 2014 15:56:42 +0000 (08:56 -0700)
I guess I got a little hd crazy.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/connection.c

index 80ebe1d305ae2c60994917fbb9f4f89412debfae..53086126f961032d1cdd3ea208db6d7e35d064b6 100644 (file)
@@ -21,7 +21,7 @@ static DEFINE_SPINLOCK(gb_connections_lock);
  * Assigns the connection's hd_cport_id and returns true if successful.
  * Returns false otherwise.
  */
-static bool hd_connection_hd_cport_id_alloc(struct gb_connection *connection)
+static bool gb_connection_hd_cport_id_alloc(struct gb_connection *connection)
 {
        struct ida *ida = &connection->hd->cport_id_map;
        int id;
@@ -38,7 +38,7 @@ static bool hd_connection_hd_cport_id_alloc(struct gb_connection *connection)
 /*
  * Free a previously-allocated CPort Id on the given host device.
  */
-static void hd_connection_hd_cport_id_free(struct gb_connection *connection)
+static void gb_connection_hd_cport_id_free(struct gb_connection *connection)
 {
        struct ida *ida = &connection->hd->cport_id_map;
 
@@ -69,7 +69,7 @@ struct gb_connection *gb_connection_create(struct gb_interface *interface,
 
        hd = interface->gmod->hd;
        connection->hd = hd;                    /* XXX refcount? */
-       if (!hd_connection_hd_cport_id_alloc(connection)) {
+       if (!gb_connection_hd_cport_id_alloc(connection)) {
                /* kref_put(connection->hd); */
                kfree(connection);
                return NULL;
@@ -106,7 +106,7 @@ void gb_connection_destroy(struct gb_connection *connection)
        list_del(&connection->interface_links);
        spin_unlock_irq(&gb_connections_lock);
 
-       hd_connection_hd_cport_id_free(connection);
+       gb_connection_hd_cport_id_free(connection);
        /* kref_put(connection->interface); */
        /* kref_put(connection->hd); */
        kfree(connection);