lkml.org 
[lkml]   [2010]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 08/27] drivers/crypto/of: don't use deprecated field in of_platform_driver
    Date
    .name, .match_table and .owner are duplicated in both of_platform_driver
    and device_driver, so the of_platform_driver copies will be removed soon.

    Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
    ---

    drivers/crypto/amcc/crypto4xx_core.c | 7 +++++--
    drivers/crypto/talitos.c | 7 +++++--
    2 files changed, 10 insertions(+), 4 deletions(-)

    diff --git a/drivers/crypto/amcc/crypto4xx_core.c b/drivers/crypto/amcc/crypto4xx_core.c
    index 1c3849f..36b5fb1 100644
    --- a/drivers/crypto/amcc/crypto4xx_core.c
    +++ b/drivers/crypto/amcc/crypto4xx_core.c
    @@ -1280,8 +1280,11 @@ static const struct of_device_id crypto4xx_match[] = {
    };

    static struct of_platform_driver crypto4xx_driver = {
    - .name = "crypto4xx",
    - .match_table = crypto4xx_match,
    + .driver = {
    + .name = "crypto4xx",
    + .owner = THIS_MODULE,
    + .of_match_table = crypto4xx_match,
    + },
    .probe = crypto4xx_probe,
    .remove = crypto4xx_remove,
    };
    diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c
    index fd529d6..917faf7 100644
    --- a/drivers/crypto/talitos.c
    +++ b/drivers/crypto/talitos.c
    @@ -1967,8 +1967,11 @@ static const struct of_device_id talitos_match[] = {
    MODULE_DEVICE_TABLE(of, talitos_match);

    static struct of_platform_driver talitos_driver = {
    - .name = "talitos",
    - .match_table = talitos_match,
    + .driver = {
    + .name = "talitos",
    + .owner = THIS_MODULE,
    + .of_match_table = talitos_match,
    + },
    .probe = talitos_probe,
    .remove = talitos_remove,
    };


    \
     
     \ /
      Last update: 2010-03-11 19:45    [W:0.060 / U:1.388 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site