Skip to content

Commit

Permalink
serial: samsung: Fix build error
Browse files Browse the repository at this point in the history
drivers/tty/serial/samsung.c: In function 's3c24xx_serial_init':
drivers/tty/serial/samsung.c:1237: error: lvalue required as unary '&' operand

Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Kukjin Kim authored and Greg Kroah-Hartman committed Aug 8, 2011
1 parent 322a8b0 commit b882fc1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/tty/serial/samsung.c
Original file line number Diff line number Diff line change
Expand Up @@ -1225,15 +1225,19 @@ static const struct dev_pm_ops s3c24xx_serial_pm_ops = {
.suspend = s3c24xx_serial_suspend,
.resume = s3c24xx_serial_resume,
};
#define SERIAL_SAMSUNG_PM_OPS (&s3c24xx_serial_pm_ops)

#else /* !CONFIG_PM_SLEEP */
#define s3c24xx_serial_pm_ops NULL

#define SERIAL_SAMSUNG_PM_OPS NULL
#endif /* CONFIG_PM_SLEEP */

int s3c24xx_serial_init(struct platform_driver *drv,
struct s3c24xx_uart_info *info)
{
dbg("s3c24xx_serial_init(%p,%p)\n", drv, info);
drv->driver.pm = &s3c24xx_serial_pm_ops;

drv->driver.pm = SERIAL_SAMSUNG_PM_OPS;

return platform_driver_register(drv);
}
Expand Down

0 comments on commit b882fc1

Please sign in to comment.