diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-06-07 14:07:07 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-06-12 14:59:54 +0200 |
commit | 76cb48c89147763ceb634d69141a28c9261254cb (patch) | |
tree | bf3242c811b2666bd1810d0a52683054e2a16579 /arch/sandbox | |
parent | ec34c2f5333adfee4724a53f23a0e82c4dd3bef2 (diff) | |
download | barebox-76cb48c89147763ceb634d69141a28c9261254cb.tar.gz barebox-76cb48c89147763ceb634d69141a28c9261254cb.tar.xz |
block: parse partition table on block device registration
Every instance of block device registration is followed by an
attempt to parse the partition table. Thus move partition table
parsing into blockdevice_register.
We do away with the warning print as it's superfluous:
parse_partition_table doesn't return an error if partition table is
missing and all other errors already result in an error message.
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20230607120714.3083182-13-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/board/hostfile.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c index d0f400787d..a1ab06b877 100644 --- a/arch/sandbox/board/hostfile.c +++ b/arch/sandbox/board/hostfile.c @@ -166,10 +166,6 @@ static int hf_probe(struct device *dev) if (err) return err; - err = parse_partition_table(&priv->blk); - if (err) - dev_warn(dev, "No partition table found\n"); - dev_info(dev, "registered as block device\n"); } else { cdev->name = np->name; |