[PATCH linux dev-4.13 02/16] hwmon (p9_sbe): Initialise device spin lock
Eddie James
eajames at linux.vnet.ibm.com
Fri Feb 23 07:26:28 AEDT 2018
On 02/19/2018 10:18 PM, Andrew Jeffery wrote:
> Signed-off-by: Andrew Jeffery <andrew at aj.id.au>
Acked-by: Eddie James <eajames at linux.vnet.ibm.com>
> ---
> drivers/hwmon/occ/p9_sbe.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/hwmon/occ/p9_sbe.c b/drivers/hwmon/occ/p9_sbe.c
> index 7dbe4d5bcd61..cda29f47f8ff 100644
> --- a/drivers/hwmon/occ/p9_sbe.c
> +++ b/drivers/hwmon/occ/p9_sbe.c
> @@ -116,6 +116,7 @@ static int p9_sbe_occ_probe(struct platform_device *pdev)
> if (!p9_sbe_occ)
> return -ENOMEM;
>
> + spin_lock_init(&p9_sbe_occ->lock);
> p9_sbe_occ->sbe = pdev->dev.parent;
> occ = &p9_sbe_occ->occ;
> occ->bus_dev = &pdev->dev;
More information about the openbmc
mailing list