Commit 40580694 authored by Martin Kepplinger's avatar Martin Kepplinger
Browse files

hi846: build fixes

parent eb2050f0
......@@ -2,7 +2,6 @@
// Copyright (c) 2021 Purism SPC
#include <asm/unaligned.h>
#include <linux/acpi.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/gpio.h>
......@@ -2011,7 +2010,7 @@ static void hi846_rst_gpio_assert(struct hi846 *hi846, bool on)
{
struct hi846_gpio *gpio = &hi846->rst_gpio;
if (gpio == 0)
if (gpio == NULL)
return;
if (on)
......@@ -2285,7 +2284,7 @@ static int hi846_probe(struct i2c_client *client)
return ret;
}
UNIVERSAL_DEV_PM_OPS(hi846_pm_ops, hi846_suspend, hi846_resume, NULL);
static UNIVERSAL_DEV_PM_OPS(hi846_pm_ops, hi846_suspend, hi846_resume, NULL);
static const struct of_device_id hi846_of_match[] = {
{ .compatible = "hynix,hi846", },
......@@ -2297,7 +2296,6 @@ static struct i2c_driver hi846_i2c_driver = {
.driver = {
.name = "hi846",
.pm = &hi846_pm_ops,
.acpi_match_table = ACPI_PTR(hi846_acpi_ids),
.of_match_table = of_match_ptr(hi846_of_match),
},
.probe_new = hi846_probe,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment