[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CY4PR07MB31764C9278BA8810CEBB5F73F05B0@CY4PR07MB3176.namprd07.prod.outlook.com>
Date: Wed, 15 Feb 2017 17:01:35 +0000
From: "Kershner, David A" <David.Kershner@...sys.com>
To: Jiri Slaby <jslaby@...e.cz>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Stefan Svinciak <xsvinc1@...muni.cz>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
*S-Par-Maintainer <SParMaintainer@...sys.com>,
"devel@...verdev.osuosl.org" <devel@...verdev.osuosl.org>
Subject: RE: [PATCH] staging: visorbus, replace init_timer with setup_timer
> -----Original Message-----
> From: Jiri Slaby [mailto:jslaby@...e.cz]
> Sent: Wednesday, February 15, 2017 11:04 AM
> To: Kershner, David A <David.Kershner@...sys.com>
> Cc: linux-kernel@...r.kernel.org; Stefan Svinciak <xsvinc1@...muni.cz>; Jiri
> Slaby <jslaby@...e.cz>; Greg Kroah-Hartman
> <gregkh@...uxfoundation.org>; *S-Par-Maintainer
> <SParMaintainer@...sys.com>; devel@...verdev.osuosl.org
> Subject: [PATCH] staging: visorbus, replace init_timer with setup_timer
>
> From: Stefan Svinciak <xsvinc1@...muni.cz>
>
> Newer version is more readable and needs less changes if/when
> timer_struct is to be changed.
>
> Signed-off-by: Stefan Svinciak <xsvinc1@...muni.cz>
> Signed-off-by: Jiri Slaby <jslaby@...e.cz>
> Cc: David Kershner <david.kershner@...sys.com>
> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Cc: <sparmaintainer@...sys.com>
> Cc: <devel@...verdev.osuosl.org>
Acked-by: David Kershner <david.kershner@...sys.com>
Looks good and runs nicely on s-Par.
David Kershner
> ---
> drivers/staging/unisys/visorbus/visorbus_main.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c
> b/drivers/staging/unisys/visorbus/visorbus_main.c
> index aea1aa262b28..55f29ae8e015 100644
> --- a/drivers/staging/unisys/visorbus/visorbus_main.c
> +++ b/drivers/staging/unisys/visorbus/visorbus_main.c
> @@ -623,9 +623,7 @@ create_visor_device(struct visor_device *dev)
> dev->device.release = visorbus_release_device;
> /* keep a reference just for us (now 2) */
> get_device(&dev->device);
> - init_timer(&dev->timer);
> - dev->timer.data = (unsigned long)(dev);
> - dev->timer.function = dev_periodic_work;
> + setup_timer(&dev->timer, dev_periodic_work, (unsigned long)dev);
>
> /*
> * bus_id must be a unique name with respect to this bus TYPE
> --
> 2.11.1
Powered by blists - more mailing lists