From patchwork Thu Oct 26 13:42:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: PrasannaKumar Muralidharan X-Patchwork-Id: 10028261 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 615BE6022E for ; Thu, 26 Oct 2017 13:43:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5225228E18 for ; Thu, 26 Oct 2017 13:43:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 451A528E1B; Thu, 26 Oct 2017 13:43:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5A7828E18 for ; Thu, 26 Oct 2017 13:43:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932275AbdJZNnV (ORCPT ); Thu, 26 Oct 2017 09:43:21 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:51618 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932246AbdJZNnU (ORCPT ); Thu, 26 Oct 2017 09:43:20 -0400 Received: by mail-pf0-f194.google.com with SMTP id n14so2537691pfh.8; Thu, 26 Oct 2017 06:43:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=tCjmx1c88O6BF+eIVJ92QAcM86VYb8x8u6lPOUUnwXg=; b=G7JT/XgZlRrbA6LPweu0hxOPVUIDUs7pw/R6CGuAsZL64/l0WV/18Rczl0NsfrhkZt Pg0Q7TNjfkYi5ncTewmbeZukXH+QPd+tiIlB7sZoQ7pmPrk1TVfaeAZSJ/dI2LZq8pFb q7t7JODTlqJUEZmlZql4ey66rKJI2td5qjMf93ZJoAJBE4t7dSmZWBgp/+4ZM937VS6A ToJ/IrQx6xj/B+qNhhq5UVISJdkZTFKGTL2gKEnSzX2SvsClI2GcTT9a1QJBb8CzG5Oi wJ5I+yLO85hP4KGJiYXEeYxHP49hdzMuMG697Rutm54t8hBY/avL5A4QdTb7ELAQlhQu 97Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tCjmx1c88O6BF+eIVJ92QAcM86VYb8x8u6lPOUUnwXg=; b=faUgMkg/8WL4o3asI2YKNXfGHgfnPkDttE8EYmF/phjbAFfbT6gwT5Hp4lmRdAgoxs iDINgC7aFE0K/d4TDAsExFz/AQgeQnE0bYIcMJghdBvAlcB3kqc/gA2Y5gRARPMW8uhS nyl/abGmRZTpHKVLUtfZIUd6be2yDZ8WnRBmzwuC8VgP2EVdX5S4X13tMNUZpz2EsKso xptSQV8oOkx84ZK2K23iSfzb36zUltO2sTnATlDYCBMD7w4GJr0P58mn6pSQRoDcsVPP Ybz8dRbSZjUkIkMqrEwEcUiC6HW+Mw+oqTCub1EHEFTFpWQuIVhkyCuDnxzLZfU23LrL YtYA== X-Gm-Message-State: AMCzsaXrbiGr8D62VpMx3tHcbp4snjRJOyj30sLE/fbkxj/E6a0TsxIj Hqon+CuB9DWi/RD9fNzUAcHoyLAgTow= X-Google-Smtp-Source: ABhQp+RhkhI3ZSs+ikhZJnpFtaVYVzVcTgBl5MFOjmDzLuwxryHZWHumfrQi+M+KitazmCLYCD9s2g== X-Received: by 10.84.244.198 with SMTP id f6mr4538716plt.32.1509025400052; Thu, 26 Oct 2017 06:43:20 -0700 (PDT) Received: from linux.local ([43.224.131.52]) by smtp.gmail.com with ESMTPSA id m78sm11320039pfj.164.2017.10.26.06.43.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Oct 2017 06:43:19 -0700 (PDT) From: PrasannaKumar Muralidharan To: herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Cc: PrasannaKumar Muralidharan Subject: [PATCH] hw_random: Include device.h instead of declaring struct device Date: Thu, 26 Oct 2017 19:12:08 +0530 Message-Id: <20171026134208.31368-1-prasannatsmkumar@gmail.com> X-Mailer: git-send-email 2.10.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Include linux/device.h instead of declaring struct device. Signed-off-by: PrasannaKumar Muralidharan --- include/linux/hw_random.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/hw_random.h b/include/linux/hw_random.h index bee0827..2ec9af7 100644 --- a/include/linux/hw_random.h +++ b/include/linux/hw_random.h @@ -13,6 +13,7 @@ #define LINUX_HWRANDOM_H_ #include +#include #include #include #include @@ -51,8 +52,6 @@ struct hwrng { struct completion cleanup_done; }; -struct device; - /** Register a new Hardware Random Number Generator driver. */ extern int hwrng_register(struct hwrng *rng); extern int devm_hwrng_register(struct device *dev, struct hwrng *rng);