aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2021-05-09 13:40:41 +1200
committerDavid Phillips <david@yeah.nah.nz>2021-05-09 13:40:41 +1200
commitf6f5ce12790243833d19a2dcbbbc422b3ad1449d (patch)
tree2613c1fe162a18906eae8d01ba7dc8e40f714757
parent53902683d1b514dca78e1d6f084673e845ba8934 (diff)
downloadcds9k-f6f5ce12790243833d19a2dcbbbc422b3ad1449d.tar.xz
Remove debug printks
-rw-r--r--.gitignore9
-rw-r--r--cds9k-gpio.c15
-rw-r--r--cds9k-mfd-spi.c2
3 files changed, 12 insertions, 14 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8532906
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+*.cmd
+*.ko
+*.mod
+*.o
+modules.order
+oe-*
+*.a
+*.symvers
+*.mod.c
diff --git a/cds9k-gpio.c b/cds9k-gpio.c
index 80b56ac..563f3a0 100644
--- a/cds9k-gpio.c
+++ b/cds9k-gpio.c
@@ -9,29 +9,22 @@
static int cds9k_gpio_probe(struct platform_device *pdev)
{
- printk("Hello from the GPIO driver. Pdev name is %s\n", pdev->name);
struct gpio_regmap_config config = {};
struct regmap *regmap;
u32 base;
int ret;
const char *parent_name = dev_name(pdev->dev.parent);
- if (!pdev->dev.parent) {
- printk("NULL parent to platform device\n");
+ if (!pdev->dev.parent)
return -ENODEV;
- }
ret = device_property_read_u32(&pdev->dev, "reg", &base);
- if (ret) {
- printk("Failed to get u32 reg property on platform device\n");
+ if (ret)
return -EINVAL;
- }
regmap = dev_get_regmap(pdev->dev.parent, NULL);
- if (!regmap) {
- printk("dev_get_regmap failed\n");
+ if (!regmap)
return -ENODEV;
- }
config.parent = &pdev->dev;
config.regmap = regmap;
@@ -44,9 +37,7 @@ static int cds9k_gpio_probe(struct platform_device *pdev)
config.reg_set_base = base + GPIO_REG_PORT;
config.reg_dir_out_base = base + GPIO_REG_DIR;
- printk("About to return from probe\n");
return PTR_ERR_OR_ZERO(devm_gpio_regmap_register(&pdev->dev, &config));
- //0;
}
static struct of_device_id cds9k_gpio_of_match[] = {
diff --git a/cds9k-mfd-spi.c b/cds9k-mfd-spi.c
index 6118196..9f04ffb 100644
--- a/cds9k-mfd-spi.c
+++ b/cds9k-mfd-spi.c
@@ -14,8 +14,6 @@ static int david_cds9k_probe(struct spi_device *spi)
const struct regmap_config *config;
struct regmap *regmap;
- printk("Bing bong\n");
-
config = device_get_match_data(&spi->dev);
if (!config)
config = &simple_regmap_config;